Package org.jboss.as.naming.deployment
Class RuntimeBindReleaseService
- java.lang.Object
-
- org.jboss.as.naming.deployment.RuntimeBindReleaseService
-
- All Implemented Interfaces:
Service,Service<RuntimeBindReleaseService.References>,Value<RuntimeBindReleaseService.References>
public class RuntimeBindReleaseService extends Object implements Service<RuntimeBindReleaseService.References>
AServicewhich on stop releases runtime installedBinderServices.- Author:
- Eduardo Martins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuntimeBindReleaseService.References
-
Constructor Summary
Constructors Constructor Description RuntimeBindReleaseService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeBindReleaseService.ReferencesgetValue()Get the actual dependency value.voidstart(StartContext context)Start the service.voidstop(StopContext context)Stop the service.
-
-
-
Method Detail
-
getValue
public RuntimeBindReleaseService.References getValue() throws IllegalStateException, IllegalArgumentException
Description copied from interface:ValueGet the actual dependency value.- Specified by:
getValuein interfaceValue<RuntimeBindReleaseService.References>- Returns:
- the actual dependency value
- Throws:
IllegalStateException- if the value is time-sensitive and the current state does not allow retrieval.IllegalArgumentException- when the value cannot be read due to misconfiguration
-
start
public void start(StartContext context) throws StartException
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
public void stop(StopContext context)
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.
-
-