Class MicroProfileApplicationContainer
- java.lang.Object
-
- fish.payara.microprofile.connector.MicroProfileApplicationContainer
-
- All Implemented Interfaces:
ApplicationContainer<Object>
- Direct Known Subclasses:
ConfigApplicationContainer,FaultToleranceApplicationContainer,HealthApplicationContainer,JwtAuthApplicationContainer,MetricsApplicationContainer,OpenApiApplicationContainer
public abstract class MicroProfileApplicationContainer extends Object implements ApplicationContainer<Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassLoaderappClassLoaderprotected StringappNameprotected DeploymentContextctx
-
Constructor Summary
Constructors Constructor Description MicroProfileApplicationContainer(DeploymentContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Returns the class loader associated with this applicationObjectgetDescriptor()Returns the deployment descriptor associated with this applicationbooleanresume()Resumes this application container.booleanstart(ApplicationContext ctx)Starts an application container.booleanstop(ApplicationContext ctx)booleansuspend()Suspends this application container.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.api.deployment.ApplicationContainer
initialize, reload
-
-
-
-
Field Detail
-
ctx
protected final DeploymentContext ctx
-
appClassLoader
protected final ClassLoader appClassLoader
-
appName
protected final String appName
-
-
Constructor Detail
-
MicroProfileApplicationContainer
public MicroProfileApplicationContainer(DeploymentContext ctx)
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:ApplicationContainerReturns the class loader associated with this application- Specified by:
getClassLoaderin interfaceApplicationContainer<Object>- Returns:
- ClassLoader for this app
-
getDescriptor
public Object getDescriptor()
Description copied from interface:ApplicationContainerReturns the deployment descriptor associated with this application- Specified by:
getDescriptorin interfaceApplicationContainer<Object>- Returns:
- deployment descriptor if they exist or null if not
-
start
public boolean start(ApplicationContext ctx) throws Exception
Description copied from interface:ApplicationContainerStarts an application container. ContractProvider starting should not throw an exception but rather should use their prefered Logger instance to log any issue they encounter while starting. Returning false from a start mean that the container failed to start- Specified by:
startin interfaceApplicationContainer<Object>- Parameters:
ctx- the start up context- Returns:
- true if the container startup was successful.
- Throws:
Exception- if this application container could not be started
-
stop
public boolean stop(ApplicationContext ctx)
- Specified by:
stopin interfaceApplicationContainer<Object>
-
resume
public boolean resume() throws ExceptionDescription copied from interface:ApplicationContainerResumes this application container.- Specified by:
resumein interfaceApplicationContainer<Object>- Returns:
- true if resumption was successful, false otherwise
- Throws:
Exception- if this application container could not be resumed
-
suspend
public boolean suspend()
Description copied from interface:ApplicationContainerSuspends this application container.- Specified by:
suspendin interfaceApplicationContainer<Object>- Returns:
- true if suspending was successful, false otherwise.
-
-