public abstract class GCUBEPortType extends Object implements javax.xml.rpc.server.ServiceLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialized
Marks the initialisation of the port-type.
|
protected GCUBELog |
logger
Object logger.
|
| Constructor and Description |
|---|
GCUBEPortType() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Invoked at container shutdown if the port-type has
Application scope,
after processing each request if the port-type has Request scope, and
at the end of each session if the port-type has Session scope. |
protected abstract GCUBEServiceContext |
getServiceContext()
Returns the service context.
|
void |
init(Object arg0)
Invoked at container startup if the port-type has
Application scope,
before processing each request if the port-type has Request scope, and
at the beginning of each session if the port-type has Session scope. |
protected void |
onFailure()
Invoked when the Running Instance fails.
|
protected void |
onInitialisation()
Invoked when the Running Instance has completed initialisation.
|
protected void |
onReady()
Invoked when the Running Instance is ready to operate.
|
protected void |
onStateChange()
Invoked upon a change to the RI's stateful resources, if any.
|
protected void |
onUpdate()
Invoked when the Runnning Instance is updated.
|
protected final GCUBELog logger
protected boolean initialized
public final void init(Object arg0) throws javax.xml.rpc.ServiceException
Application scope,
before processing each request if the port-type has Request scope, and
at the beginning of each session if the port-type has Session scope.
Triggers the initialisation of the service.
init in interface javax.xml.rpc.server.ServiceLifecyclejavax.xml.rpc.ServiceException - if the prto-type could not be initialisedprotected abstract GCUBEServiceContext getServiceContext()
public void destroy()
Application scope,
after processing each request if the port-type has Request scope, and
at the end of each session if the port-type has Session scope.
By default, it does nothing. If required, override to free system resources.
destroy in interface javax.xml.rpc.server.ServiceLifecycleprotected void onInitialisation()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.protected void onReady()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.protected void onFailure()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.protected void onUpdate()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.Copyright © 2015. All Rights Reserved.