Package org.jboss.as.naming.service
Class NamingStoreService
- java.lang.Object
-
- org.jboss.as.naming.service.NamingStoreService
-
- All Implemented Interfaces:
Service,Service<ServiceBasedNamingStore>,Value<ServiceBasedNamingStore>
public class NamingStoreService extends Object implements 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(StartContext context)Creates the naming store if not provided by the constructor.voidstop(StopContext context)Destroys the naming store.
-
-
-
Method Detail
-
start
public void start(StartContext context) throws StartException
Creates the naming store if not provided by the constructor.- Specified by:
startin interfaceService- Parameters:
context- The start context- Throws:
StartException- If any problems occur creating the context
-
stop
public void stop(StopContext context)
Destroys the naming store.
-
getValue
public ServiceBasedNamingStore getValue() throws IllegalStateException
Get the context value.- Specified by:
getValuein interfaceValue<ServiceBasedNamingStore>- Returns:
- The naming store
- Throws:
IllegalStateException
-
-