Package org.jboss.as.server
Class ServerEnvironmentService
java.lang.Object
org.jboss.as.server.ServerEnvironmentService
Exposes the
ServerEnvironment via a Service.- Author:
- Brian Stansberry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.msc.service.ServiceNameDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddService(ServerEnvironment serverEnvironment, org.jboss.msc.service.ServiceTarget target) Adds a ServerEnvironmentService based on the givenserverEnvironmentto the given batch under nameSERVICE_NAME.
-
Field Details
-
SERVICE_NAME
Deprecated.Generate ServiceName viaServerEnvironment.SERVICE_DESCRIPTORinstead.Standard ServiceName under which a ServerEnvironmentService would be registered
-
-
Method Details
-
addService
public static void addService(ServerEnvironment serverEnvironment, org.jboss.msc.service.ServiceTarget target) Adds a ServerEnvironmentService based on the givenserverEnvironmentto the given batch under nameSERVICE_NAME.- Parameters:
serverEnvironment- theServerEnvironment. Cannot benulltarget- the batch builder. Cannot benull
-
ServerEnvironment.SERVICE_DESCRIPTORinstead.