Package org.glassfish.embeddable.client
Interface ApplicationClientClassLoader
public interface ApplicationClientClassLoader
Marks class loaders in gf-client and gf-client-module which can provide a container
initialized by the Java agent.
It is the only way to send an object from the agent to the main class.
ClassLoader is an abstract class and we don't want to introduce
multiple inheritance, so this interface is added to chosen class loaders.
The hierarchy in the appclient is strictly defined, so this is enough.
Older implementations used principially same "trick", but this is bit more
readable as you can always search usages of this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidSets the container.
-
Method Details
-
setApplicationClientContainer
Sets the container. Default implementation doesn't do anything.- Parameters:
container-
-
getApplicationClientContainer
ApplicationClientContainer getApplicationClientContainer()- Returns:
ApplicationClientContainer
-