Many thanks, that worked just perfectly
On 2013-02-14 14:06, Guillaume Sauthier (OW2) wrote:
Having a component class means that iPOJO is the sole lifecycle
controller.
It will decide when (depending on the dependencies availability) the
instance will be created (or not).
So, either you have to make ProtocolInstanceImpl not a component
anymore
(you'll gain the lifecycle control), but you'll loose iPOJO's
sweetness
(services injection, configuration, ....).
Or you also can use iPOJO's Factory services.
Just @Requires a Factory instance:
@Requires(from="<your-component-name>") Factory factory;
And then createComponentInstance(giving configuration properties).
--G
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]