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()
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 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.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>
IllegalStateException
Copyright © 2014 JBoss by Red Hat. All rights reserved.