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>
Service responsible for creating and managing the life-cycle of the Naming Server.
- Author:
- John E. Bailey, Eduardo Martins
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.jboss.msc.service.ServiceNameDeprecated.Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.value.InjectedValue<NamingStore>Retrieves the naming store's InjectedValue.getValue()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 Details
-
CAPABILITY_NAME
- See Also:
-
SERVICE_NAME
Deprecated.Dependent subsystem should instead register a requirement on theCAPABILITY_NAMEcapability.
-
-
Constructor Details
-
NamingService
public NamingService()Construct a new instance.
-
-
Method Details
-
getNamingStore
Retrieves the naming store's InjectedValue.- Returns:
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException Creates 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
Get the naming store value.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<NamingStore>- Returns:
- The naming store.
- Throws:
IllegalStateException
-
CAPABILITY_NAMEcapability.