net.sourceforge.hiveutils.service.impl
Class ContributionObjectProvider

java.lang.Object
  extended by net.sourceforge.hiveutils.service.impl.ContributionObjectProvider
All Implemented Interfaces:
org.apache.hivemind.service.ObjectProvider

public class ContributionObjectProvider
extends java.lang.Object
implements org.apache.hivemind.service.ObjectProvider

An org.apache.hivemind.service.ObjectProvider that extracts a contribution item from a global configuration, referenced by a unique id. The translator string is of the form: config-id:id-property:id-value. The id-property name defines the name of a property of the contribution object that is supposed unique and will be used to find the required contribution.

Author:
Jean-Francois Poilpret

Constructor Summary
ContributionObjectProvider()
           
 
Method Summary
 java.lang.Object provideObject(org.apache.hivemind.internal.Module contributingModule, java.lang.Class propertyType, java.lang.String inputValue, org.apache.hivemind.Location location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContributionObjectProvider

public ContributionObjectProvider()
Method Detail

provideObject

public java.lang.Object provideObject(org.apache.hivemind.internal.Module contributingModule,
                                      java.lang.Class propertyType,
                                      java.lang.String inputValue,
                                      org.apache.hivemind.Location location)
Specified by:
provideObject in interface org.apache.hivemind.service.ObjectProvider