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??
Regards
Nasir