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>
public class NamingService extends Object implements 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 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 InjectedValue<NamingStore>getNamingStore()Retrieves the naming store's InjectedValue.NamingStoregetValue()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 Detail
-
CAPABILITY_NAME
public static final String CAPABILITY_NAME
- See Also:
- Constant Field Values
-
SERVICE_NAME
@Deprecated public static final ServiceName SERVICE_NAME
Deprecated.Dependent subsystem should instead register a requirement on theCAPABILITY_NAMEcapability.
-
-
Method Detail
-
getNamingStore
public InjectedValue<NamingStore> getNamingStore()
Retrieves the naming store's InjectedValue.- Returns:
-
start
public void start(StartContext context) throws StartException
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
public void stop(StopContext context)
Removes the naming server from the naming context.
-
getValue
public NamingStore getValue() throws IllegalStateException
Get the naming store value.- Specified by:
getValuein interfaceValue<NamingStore>- Returns:
- The naming store.
- Throws:
IllegalStateException
-
-