public class NamingService extends Object implements org.jboss.msc.service.Service<NamingStore>
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
NamingService(NamingStore namingStore)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
NamingStore |
getValue()
Get the naming store value.
|
void |
start(org.jboss.msc.service.StartContext context)
Creates a new NamingServer and sets the naming context to use the naming server.
|
void |
stop(org.jboss.msc.service.StopContext context)
Removes the naming server from the naming context.
|
public NamingService(NamingStore namingStore)
namingStore - The naming store.public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<NamingStore>context - The start contextorg.jboss.msc.service.StartException - If any errors occur setting up the naming serverpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<NamingStore>context - The stop context.public NamingStore getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<NamingStore>IllegalStateExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.