public class ServiceWrapper extends BaseWrapper implements ComponentWrapper
Constructor and Description |
---|
ServiceWrapper(ServiceAdaptor service,
Object proxy)
Create a new instance wrapping a service.
|
Modifier and Type | Method and Description |
---|---|
protected void |
exceptionFromComponent(Exception e)
Used by the exception handler callback.
|
protected void |
fireDestroyedState()
Internal method to fire state.
|
protected org.apache.commons.beanutils.DynaBean |
getDynaBean()
Sub classes must provide a dyna bean for properties.
|
protected Object |
getProxy()
Subclass must provide the proxy.
|
protected ServiceStateChanger |
getStateChanger() |
Object |
getWrapped()
Return the object that is being proxied.
|
boolean |
hardReset()
Perform a hard reset on the job.
|
protected IconHelper |
iconHelper()
Subclasses must provide a
IconHelper . |
protected void |
onStop() |
void |
run() |
protected void |
save(Object compoonent)
Save this job.
|
boolean |
softReset()
Perform a soft reset on the job.
|
protected ServiceStateHandler |
stateHandler()
Subclasses must provide a
StateHandler . |
configure, contains, describe, equals, get, get, get, getDynaClass, getResult, interfacesFor, logger, loggerName, onDestroy, remove, save, set, set, set, stop, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, setArooaContext, setArooaSession
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
public ServiceWrapper(ServiceAdaptor service, Object proxy)
service
- proxy
- protected ServiceStateHandler stateHandler()
BaseComponent
StateHandler
.stateHandler
in class BaseComponent
protected IconHelper iconHelper()
BaseComponent
IconHelper
.iconHelper
in class BaseComponent
protected ServiceStateChanger getStateChanger()
public Object getWrapped()
BaseWrapper
getWrapped
in class BaseWrapper
protected org.apache.commons.beanutils.DynaBean getDynaBean()
BaseWrapper
getDynaBean
in class BaseWrapper
protected Object getProxy()
BaseWrapper
getProxy
in class BaseWrapper
protected void save(Object compoonent)
BaseComponent
save
in class BaseComponent
protected void exceptionFromComponent(Exception e)
e
- protected void onStop() throws FailedToStopException
onStop
in class BaseWrapper
FailedToStopException
public boolean softReset()
public boolean hardReset()
protected void fireDestroyedState()
fireDestroyedState
in class BaseComponent