On 3/13/10 3:37, Mahammad Nasir wrote:

Hi,

I am registering factory class (Which is outside osgi framewor)  through the
system bundle. This casls will instantiates the objects which is out side
the framework.

Now i have some thing like this.

Registerservice(Factory.Icreateinterface,factoryobject,null) //This is done
via system bundle.

Now some other bundle uses this service.

getService(Factory.createinterface);

now i have a factory class which is creating a objects (these classes are
exposed via, systempackages.extra)

CFacotry implements Icreateinterface
{
    object createinstance();
}

All these i am doing because i dont want to register every object which is
otsuide the framework.

Is this safe?? Can i do this??

That should be fine, assuming that the associated packages of all objects are exported by the system bundle and if this service is dynamic, that bundles stop using the objects if it goes away.

-> richard



Regards
Nasir


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

Reply via email to