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
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NamingStoreService
public NamingStoreService() -
NamingStoreService
public NamingStoreService(boolean readOnly)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException Creates the naming store if not provided by the constructor.- Specified by:
startin interfaceorg.jboss.msc.Service- 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- Parameters:
context- The stop context
-
getValue
Get the context value.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ServiceBasedNamingStore>- Returns:
- The naming store
- Throws:
IllegalStateException
-