public class NamingService extends Object implements org.jboss.msc.service.Service<NamingStore>
| Modifier and Type | Field and Description |
|---|---|
static String |
CAPABILITY_NAME |
static org.jboss.msc.service.ServiceName |
SERVICE_NAME
Deprecated.
Dependent subsystem should instead register a requirement on the
CAPABILITY_NAME capability. |
| Constructor and Description |
|---|
NamingService()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.msc.value.InjectedValue<NamingStore> |
getNamingStore()
Retrieves the naming store's InjectedValue.
|
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 static final String CAPABILITY_NAME
@Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
CAPABILITY_NAME capability.public org.jboss.msc.value.InjectedValue<NamingStore> getNamingStore()
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Servicecontext - 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.Servicecontext - The stop context.public NamingStore getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<NamingStore>IllegalStateExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.