Package org.jboss.as.naming.service
Class NamingService
- java.lang.Object
-
- org.jboss.as.naming.service.NamingService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<NamingStore>,org.jboss.msc.value.Value<NamingStore>
public class NamingService extends Object implements org.jboss.msc.service.Service<NamingStore>
Service responsible for creating and managing the life-cycle of the Naming Server.- Author:
- John E. Bailey, Eduardo Martins
-
-
Field Summary
Fields Modifier and Type Field Description static StringCAPABILITY_NAMEstatic org.jboss.msc.service.ServiceNameSERVICE_NAMEDeprecated.Dependent subsystem should instead register a requirement on theCAPABILITY_NAMEcapability.
-
Constructor Summary
Constructors Constructor Description NamingService()Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.value.InjectedValue<NamingStore>getNamingStore()Retrieves the naming store's InjectedValue.NamingStoregetValue()Get the naming store value.voidstart(org.jboss.msc.service.StartContext context)Creates a new NamingServer and sets the naming context to use the naming server.voidstop(org.jboss.msc.service.StopContext context)Removes the naming server from the naming context.
-
-
-
Field Detail
-
CAPABILITY_NAME
public static final String CAPABILITY_NAME
- See Also:
- Constant Field Values
-
SERVICE_NAME
@Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
Deprecated.Dependent subsystem should instead register a requirement on theCAPABILITY_NAMEcapability.
-
-
Method Detail
-
getNamingStore
public org.jboss.msc.value.InjectedValue<NamingStore> getNamingStore()
Retrieves the naming store's InjectedValue.- Returns:
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartExceptionCreates a new NamingServer and sets the naming context to use the naming server.- Specified by:
startin interfaceorg.jboss.msc.Service- Parameters:
context- The start context- Throws:
org.jboss.msc.service.StartException- If any errors occur setting up the naming server
-
stop
public void stop(org.jboss.msc.service.StopContext context)
Removes the naming server from the naming context.- Specified by:
stopin interfaceorg.jboss.msc.Service- Parameters:
context- The stop context.
-
getValue
public NamingStore getValue() throws IllegalStateException
Get the naming store value.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<NamingStore>- Returns:
- The naming store.
- Throws:
IllegalStateException
-
-