There must be at least one "getter" of the service for that to occur.

I guess you need to debug who/what is triggering this instance.

- Ray

On Sun, Aug 2, 2020 at 5:01 PM Paul F Fraser via osgi-dev <
osgi-dev@mail.osgi.org> wrote:

> Hi,
>
> My aim is to only instantiate a prototype component  when required but in
> my code a protype
> component is allways created on startup without a distinct action to get
> the service.
>
> This intial instance is activated and then immediately deactivated in my
> case which does not cause
> me any hassles but it seems unnecessary.
>
> Is this to be expected and if so how can I prevent, or is it necessry to
> prevent this initial instance?
>
> Paul Fraser
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev



-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to