Class JMSService
java.lang.Object
org.wildfly.extension.messaging.activemq.jms.JMSService
- All Implemented Interfaces:
Service,Service<JMSServerManager>,Value<JMSServerManager>
The
JMSServerManager service.- Author:
- Emanuel Muckenhuber
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJMSService(ServiceName serverServiceName, boolean overrideInVMSecurity) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceController<JMSServerManager>addService(ServiceTarget target, ServiceName serverServiceName, boolean overrideInVMSecurity) getValue()Get the actual dependency value.voidstart(StartContext context) Start the service.voidstop(StopContext context) Stop the service.
-
Constructor Details
-
JMSService
-
-
Method Details
-
addService
public static ServiceController<JMSServerManager> addService(ServiceTarget target, ServiceName serverServiceName, boolean overrideInVMSecurity) -
getValue
Description copied from interface:ValueGet the actual dependency value.- Specified by:
getValuein interfaceValue<JMSServerManager>- Returns:
- the actual dependency value
- Throws:
IllegalStateException- if the value is time-sensitive and the current state does not allow retrieval.
-
start
Description copied from interface:ServiceStart the service. Do not return until the service has been fully started, unless an asynchronous service start is performed. All injections will be complete before this method is called.If the service start involves any activities that may block, the asynchronous mechanism provided by the
contextshould be used. See theclass javadocfor details.- Specified by:
startin interfaceService- Parameters:
context- the context which can be used to trigger an asynchronous service start- Throws:
StartException- if the service could not be started for some reason
-
stop
Description copied from interface:ServiceStop the service. Do not return until the service has been fully stopped, unless an asynchronous service stop is performed. All injections will remain intact until the service is fully stopped. This method should not throw an exception.If the service start involves any activities that may block, the asynchronous mechanism provided by the
contextshould be used. See theclass javadocfor details.
-