Hi,

I create a component instance like this:

ComponentInstance instance = new PrimitiveComponentType()
            .setBundleContext(context)
            .setClassName(BeanFilterImpl.class.getName())
            .setValidateMethod("start")
            
.createInstance("com.ce.flowbeans.impl.BeanFilterImpl-1455-8997-5268-2476");

1) It seems that the moment that createInstance is called, the start method is 
called.
Is this normal? If so, then what is the purpose of instance.start()?

 
2) I have the annotation @Validate on my start method of my component.
Though, when I do not add .setValidateMethod("start") then the component is not 
started, not even when I call instance.start() ?

3) Is there a way to create an instance and have control over the moment when 
the instance is started?

Thanks

Michiel 

-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials

Reply via email to