Class ServerEnvironmentService

java.lang.Object
org.jboss.as.server.ServerEnvironmentService

public class ServerEnvironmentService extends Object
Exposes the ServerEnvironment via a Service.
Author:
Brian Stansberry
  • Field Details

    • SERVICE_NAME

      @Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
      Deprecated.
      Generate ServiceName via ServerEnvironment.SERVICE_DESCRIPTOR instead.
      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 given serverEnvironment to the given batch under name SERVICE_NAME.
      Parameters:
      serverEnvironment - the ServerEnvironment. Cannot be null
      target - the batch builder. Cannot be null