Hi,

On 20.05.2010 20:30, Carl Hall wrote:
> I'm familiar with:
> 
> @Reference(referenceInterface = MySweetInterface.class, target =
> "(specialProp=certainThingIWant)")
> 
> but am wondering if I can do something like that during the activation a
> component.
> 
> My scenario is this.  I have a component that uses factory configurations
> (ldap connection pools) and a component that needs one of the components
> created by the factory configuration (ldap authn).  In this second
> component, since it needs the /right/ ldap pool to use if there are multiple
> available, I was thinking of passing a property in the configuration that
> could be used to lookup a service like the "target" bit above.  Is this
> doable or should I approach the problem differently?
> 

Yes, you can set the target attribute by configuration using a property
of the form "refname.target" where "refname" is the name of the reference.

See Section 112.6, Component Properties in the Compendium Specification.

Regards
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to