Package org.glassfish.api.deployment
Interface ApplicationContainer<T>
-
- All Known Implementing Classes:
AppClientServerApplication
,ConfigApplicationContainer
,ConnectorApplication
,DummyApplication
,EjbApplication
,FaultToleranceApplicationContainer
,GenericApplicationContainer
,GrizzlyApp
,HealthApplicationContainer
,JPApplicationContainer
,JwtAuthApplicationContainer
,MetricsApplicationContainer
,MetroDeployer.MetroApplicationContainer
,MicroProfileApplicationContainer
,OpenApiApplicationContainer
,OSGiDeployedBundle
,ResourcesApplication
,WebApplication
,WebServicesApplication
,WeldApplicationContainer
public interface ApplicationContainer<T>
Interface to an application container. mainly used to start and stop the application.- Author:
- Jerome Dochez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Returns the class loader associated with this applicationT
getDescriptor()
Returns the deployment descriptor associated with this applicationdefault void
initialize()
Initialize the container post-startup of Hazelcast Used for EJB timers right nowdefault boolean
reload(ApplicationContext context)
Reloads an application container.boolean
resume()
Resumes this application container.boolean
start(ApplicationContext startupContext)
Starts an application container.boolean
stop(ApplicationContext stopContext)
boolean
suspend()
Suspends this application container.
-
-
-
Method Detail
-
getDescriptor
T getDescriptor()
Returns the deployment descriptor associated with this application- Returns:
- deployment descriptor if they exist or null if not
-
initialize
default void initialize()
Initialize the container post-startup of Hazelcast Used for EJB timers right now
-
start
boolean start(ApplicationContext startupContext) throws Exception
Starts 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- Parameters:
startupContext
- the start up context- Returns:
- true if the container startup was successful.
- Throws:
Exception
- if this application container could not be started
-
reload
default boolean reload(ApplicationContext context) throws Exception
Reloads an application container.- Parameters:
context
- the context- Returns:
- true if the container reload was successful.
- Throws:
Exception
- if this application container could not be reloaded
-
stop
boolean stop(ApplicationContext stopContext)
-
suspend
boolean suspend()
Suspends this application container.- Returns:
- true if suspending was successful, false otherwise.
-
resume
boolean resume() throws Exception
Resumes this application container.- Returns:
- true if resumption was successful, false otherwise
- Throws:
Exception
- if this application container could not be resumed
-
getClassLoader
ClassLoader getClassLoader()
Returns the class loader associated with this application- Returns:
- ClassLoader for this app
-
-