|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifecycleListener
A Coherence application typically includes a cache configuration file with cache and clustered service definitions. This interface defines lifecycle callbacks that are invoked before and after the creation and destruction of these services.
Implementations of this interface are typically declared in a Coherence application deployment descriptor in a GAR (Grid Archive) file. The instantiation occurs in ContainerAdapter
, which is the application server integration layer.
Method Summary | |
---|---|
void |
postStart(Context ctx) Called after the application is started. |
void |
postStop(Context ctx) Called after the application is stopped. |
void |
preStart(Context ctx) Called before the application is activated. |
void |
preStop(Context ctx) Called before the application stops its services and disposes of its resources. |
Method Detail |
---|
void preStart(Context ctx)
Context
contains the context of the application allowing for a custom application to create custom services and/or a custom CacheFactoryBuilder
implementation.ctx
- the Context
for the applicationvoid postStart(Context ctx)
<autostart>
will have been started. These services (and caches) can be accessed via Context.getConfigurableCacheFactory()
.ctx
- the Context
for the applicationvoid preStop(Context ctx)
ctx
- the Context
for the applicationvoid postStop(Context ctx)
ctx
- the Context
for the application
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |