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>
Service responsible for managing the creation and life-cycle of a service based naming store.
- Author:
- John E. Bailey, Stuart Douglas, Eduardo Martins
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Get the context value.voidstart(StartContext context) Creates the naming store if not provided by the constructor.voidstop(StopContext context) Destroys the naming store.
-
Constructor Details
-
NamingStoreService
public NamingStoreService() -
NamingStoreService
public NamingStoreService(boolean readOnly)
-
-
Method Details
-
start
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
Destroys the naming store. -
getValue
Get the context value.- Specified by:
getValuein interfaceValue<ServiceBasedNamingStore>- Returns:
- The naming store
- Throws:
IllegalStateException
-