G
Graham Matthews
Hi
I am writing an app which has a plugin architecture. I have split my apps
classes into two packages, core and sdk. Plugins that other people write
are welcome to use the classes in the sdk package, but should not use
the classes in the core package.
At present someone can write a plugin and declare it to be in package
core, and hence access code that I do not wish them to access.
So how do I enforce this separation? I have been looking at the
security manager class, and the checkPackageAccess() and
checkPackageDefinition() methods. But it's all kinda mysterious and
I haven't made much progress.
Can anyone point me at a resource to show me how to dynamically
restrict package access in the way I wish.
thanks
graham
I am writing an app which has a plugin architecture. I have split my apps
classes into two packages, core and sdk. Plugins that other people write
are welcome to use the classes in the sdk package, but should not use
the classes in the core package.
At present someone can write a plugin and declare it to be in package
core, and hence access code that I do not wish them to access.
So how do I enforce this separation? I have been looking at the
security manager class, and the checkPackageAccess() and
checkPackageDefinition() methods. But it's all kinda mysterious and
I haven't made much progress.
Can anyone point me at a resource to show me how to dynamically
restrict package access in the way I wish.
thanks
graham