Package org.jboss.as.naming.service
Class NamingStoreService
- java.lang.Object
-
- org.jboss.as.naming.service.NamingStoreService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<ServiceBasedNamingStore>,org.jboss.msc.value.Value<ServiceBasedNamingStore>
public class NamingStoreService extends Object implements org.jboss.msc.service.Service<ServiceBasedNamingStore>
Service responsible for managing the creation and life-cycle of a service based naming store.- Author:
- John E. Bailey, Stuart Douglas, Eduardo Martins
-
-
Constructor Summary
Constructors Constructor Description NamingStoreService()NamingStoreService(boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceBasedNamingStoregetValue()Get the context value.voidstart(org.jboss.msc.service.StartContext context)Creates the naming store if not provided by the constructor.voidstop(org.jboss.msc.service.StopContext context)Destroys the naming store.
-
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartExceptionCreates the naming store if not provided by the constructor.- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<ServiceBasedNamingStore>- Parameters:
context- The start context- Throws:
org.jboss.msc.service.StartException- If any problems occur creating the context
-
stop
public void stop(org.jboss.msc.service.StopContext context)
Destroys the naming store.- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<ServiceBasedNamingStore>- Parameters:
context- The stop context
-
getValue
public ServiceBasedNamingStore getValue() throws IllegalStateException
Get the context value.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ServiceBasedNamingStore>- Returns:
- The naming store
- Throws:
IllegalStateException
-
-