Package com.adaptris.core.services
Class AlwaysFailService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.services.AlwaysFailService
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
@Deprecated @ComponentProfile(summary="Deprecated: use ThrowExceptionService instead", tag="service") @ConfigDeprecated(groups=java.lang.Deprecated.class) public class AlwaysFailService extends ServiceImp
Deprecated.since 3.0.0 consider usingThrowExceptionService
instead which will give you a better exception message.Always fail.In the adapter configuration file this class is aliased as always-fail-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description AlwaysFailService()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
closeService()
Deprecated.void
doService(AdaptrisMessage msg)
Deprecated.Apply the service to the message.protected void
initService()
Deprecated.void
prepare()
Deprecated.Prepare for initialisation.-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage msg) throws ServiceException
Deprecated.Description copied from interface:Service
Apply the service to the message.
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s
-
initService
protected void initService() throws CoreException
Deprecated.- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
closeService
protected void closeService()
Deprecated.- Specified by:
closeService
in classServiceImp
-
prepare
public void prepare() throws CoreException
Deprecated.Description copied from interface:ComponentLifecycleExtension
Prepare for initialisation.- Throws:
CoreException
-
-