|
Summary: The SharedComponent element is a construct that allows a class to be dynamically installed into the GSC's ComponentLoader.
The SharedComponent element is a construct that allows a class to be dynamically installed into the GSC's ComponentLoader, having the class loaded by the GSC's common classloader, making the class accessible to all services instantiated by the GSC. To understand what this means it is important to understand the Service Grid ClassLoader Hierarchy. The shared component concept was originally created to deal with the issue of loading and sharing native libraries, but other uses can be thought of. Examples:
Declaring a shared component is done as part of the Resources element. Example: <ImplementationClass>com.foo.FooImpl <Resources> <JAR>foo.jar</JAR> <SharedComponent> <ClassName>com.foo.component.FooComponent</ClassName> <JAR>foo-component.jar</JAR> </SharedComponent> </Resources> </ImplementationClass> RELATED TOPICS |
Wiki Content Tree
Your Feedback Needed!
We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.
Add Comment