public class NamingStoreService extends Object implements org.jboss.msc.service.Service<ServiceBasedNamingStore>
Contexts created by this service use a separate in-memory store
| Constructor and Description |
|---|
NamingStoreService() |
NamingStoreService(ServiceBasedNamingStore store) |
| Modifier and Type | Method and Description |
|---|---|
ServiceBasedNamingStore |
getValue()
Get the context value.
|
void |
start(org.jboss.msc.service.StartContext context)
Creates the naming store if not provided by the constructor.
|
void |
stop(org.jboss.msc.service.StopContext context)
Destroys the naming store.
|
public NamingStoreService()
public NamingStoreService(ServiceBasedNamingStore store)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<ServiceBasedNamingStore>context - The start contextorg.jboss.msc.service.StartException - If any problems occur creating the contextpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<ServiceBasedNamingStore>context - The stop contextpublic ServiceBasedNamingStore getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<ServiceBasedNamingStore>IllegalStateExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.