Package org.jboss.as.naming.service
Class NamingService
java.lang.Object
org.jboss.as.naming.service.NamingService
- All Implemented Interfaces:
Service,Service<NamingStore>,Value<NamingStore>
Service responsible for creating and managing the life-cycle of the Naming Server.
- Author:
- John E. Bailey, Eduardo Martins
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the naming store's InjectedValue.getValue()Get the naming store value.voidstart(StartContext context) Creates a new NamingServer and sets the naming context to use the naming server.voidstop(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
Creates a new NamingServer and sets the naming context to use the naming server.- Specified by:
startin interfaceService- Parameters:
context- The start context- Throws:
StartException- If any errors occur setting up the naming server
-
stop
Removes the naming server from the naming context. -
getValue
Get the naming store value.- Specified by:
getValuein interfaceValue<NamingStore>- Returns:
- The naming store.
- Throws:
IllegalStateException
-
CAPABILITY_NAMEcapability.