Package org.glassfish.internal.data
Class EngineInfo<T extends Container,U extends ApplicationContainer>
- java.lang.Object
-
- org.glassfish.internal.data.EngineInfo<T,U>
-
public class EngineInfo<T extends Container,U extends ApplicationContainer> extends Object
This class holds information about a particular container such as a reference to the sniffer, the container itself and the list of applications deployed in that container.- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description EngineInfo(org.glassfish.hk2.api.ServiceHandle<T> container, Sniffer sniffer, ClassLoader cloader)
Creates a new ContractProvider info with references to the container, the sniffer and the connector module implementing the ContractProvider/Deployer interfaces.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean(ExtendedDeploymentContext context)
T
getContainer()
Returns the container instanceDeployer<T,U>
getDeployer()
Returns the deployer instance for this containerSniffer
getSniffer()
Returns the sniffer associated with this containervoid
load(ExtendedDeploymentContext context)
void
setDeployer(Deployer<T,U> deployer)
Sets the deployer associated with this containervoid
setRegistry(ContainerRegistry registry)
void
stop(Logger logger)
void
unload(ExtendedDeploymentContext context)
-
-
-
Constructor Detail
-
EngineInfo
public EngineInfo(org.glassfish.hk2.api.ServiceHandle<T> container, Sniffer sniffer, ClassLoader cloader)
Creates a new ContractProvider info with references to the container, the sniffer and the connector module implementing the ContractProvider/Deployer interfaces.- Parameters:
container
- instance of the containersniffer
- sniffer associated with that container
-
-
Method Detail
-
getContainer
public T getContainer()
Returns the container instance- Returns:
- the container instance
-
getSniffer
public Sniffer getSniffer()
Returns the sniffer associated with this container- Returns:
- the sniffer instance
-
getDeployer
public Deployer<T,U> getDeployer()
Returns the deployer instance for this container- Returns:
- Deployer instance
-
setDeployer
public void setDeployer(Deployer<T,U> deployer)
Sets the deployer associated with this container- Parameters:
deployer
-
-
load
public void load(ExtendedDeploymentContext context)
-
unload
public void unload(ExtendedDeploymentContext context) throws Exception
- Throws:
Exception
-
clean
public void clean(ExtendedDeploymentContext context) throws Exception
- Throws:
Exception
-
setRegistry
public void setRegistry(ContainerRegistry registry)
-
stop
public void stop(Logger logger)
-
-