Hi Everyone,

We're in the middle of moving our codebase to OSGI using IPojo. Problem is,
I can not instantiate the manipulated classes without IPojo.

AFAIK, IPojo manipulates the constructors with no argument and BundleContext
argument. So we can use other constructors for instance creation without
getting through IPojo, and all field and method delegations will be disabled
in that case. Am i wrong?

IPojoized classes are subclasses of some generic type, and i just use
@Component and @Provides on them. That's all, just for easy service
publication. But after that i can not instantiate them using _ctor(String)
constructor.

If you ask why you're using normal instantiation, these usages without IPojo
are just on unit tests. Eventually we'll move these tests to OSGI, but it
would be cool to be able to still use them until we do.


Regards,
Gokturk

Reply via email to