I
ittay.dror
Hi,
Assume I have an application that can load plugins.
I want a plugin to be able to use an API I provide, and nothing more.
How do I do that?
More detailed, I have an interface MyApi, implemented by MyApiImpl, and
a class MyPlugin loaded into my application. How can I make it
recognize MyApi, but not MyApiImpl? It has to work with MyApi
interface, but the object it links with is MyApiImpl. I want to acheive
this with class loaders, not public/private/package protection.
Thanx,
Ittay
Assume I have an application that can load plugins.
I want a plugin to be able to use an API I provide, and nothing more.
How do I do that?
More detailed, I have an interface MyApi, implemented by MyApiImpl, and
a class MyPlugin loaded into my application. How can I make it
recognize MyApi, but not MyApiImpl? It has to work with MyApi
interface, but the object it links with is MyApiImpl. I want to acheive
this with class loaders, not public/private/package protection.
Thanx,
Ittay