Interface J7mApplication
public interface J7mApplication
Managed J7M application lifecycle contract.
Implementations are instantiated by the application manager after bundle
verification. Lifecycle failures are wrapped in the middleware error model
by deployer implementations. Applications should release owned resources in
stop(ApplicationContext) and make drain(ApplicationContext)
idempotent.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrain(ApplicationContext context) Stops accepting new work before shutdown.voidinitialize(ApplicationContext context) Initializes the application before services are exported.voidstart(ApplicationContext context) Starts the application after declared services are exported.voidstop(ApplicationContext context) Stops the application and releases application-owned resources.
-
Method Details
-
initialize
Initializes the application before services are exported.- Parameters:
context- safe application context
-
start
Starts the application after declared services are exported.- Parameters:
context- safe application context
-
drain
Stops accepting new work before shutdown.- Parameters:
context- safe application context
-
stop
Stops the application and releases application-owned resources.- Parameters:
context- safe application context
-