Class ServiceConfigUtil

  • public final class ServiceConfigUtil
    extends java.lang.Object
    A ServiceConfig factory and related utility methods.

    The ServiceConfig instance models the serviceengine.xml file and the instance is kept in the "service.ServiceConfig" cache. Clearing the cache will reload the service configuration file. Client code that depends on the serviceengine.xml file can be notified when the file is reloaded by implementing ServiceConfigListener and registering itself using the registerServiceConfigListener(ServiceConfigListener) method.

    • Field Detail

      • module

        public static final java.lang.String module
    • Method Detail

      • getEngineParameter

        public static java.lang.String getEngineParameter​(java.lang.String engineName,
                                                          java.lang.String parameterName)
                                                   throws GenericConfigException
        Returns the specified parameter value from the specified engine, or null if the engine or parameter are not found.
        engineName -
        parameterName -
      • registerServiceConfigListener

        public static void registerServiceConfigListener​(ServiceConfigListener listener)
        Register a ServiceConfigListener instance. The instance will be notified when the serviceengine.xml file is reloaded.
        listener -
      • getEngine

        public static java.lang.String getEngine()
      • getServiceEngineXmlFileName

        public static java.lang.String getServiceEngineXmlFileName()