Package tigase.conf

Class ConfiguratorAbstract

    • Field Detail

      • AUTH_DOMAIN_POOL_CLASS_PROP_KEY

        @Deprecated
        public static final java.lang.String AUTH_DOMAIN_POOL_CLASS_PROP_KEY
        Deprecated.
        moved to RepositoryFactory
        See Also:
        Constant Field Values
      • AUTH_DOMAIN_POOL_CLASS_PROP_VAL

        @Deprecated
        public static final java.lang.String AUTH_DOMAIN_POOL_CLASS_PROP_VAL
        Deprecated.
        moved to RepositoryFactory
        See Also:
        Constant Field Values
      • CONFIG_REPO_CLASS_INIT_KEY

        @Deprecated
        public static final java.lang.String CONFIG_REPO_CLASS_INIT_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • CONFIG_REPO_CLASS_PROP_KEY

        @Deprecated
        public static final java.lang.String CONFIG_REPO_CLASS_PROP_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • INIT_PROPERTIES_MAP_BIND

        public static final java.lang.String INIT_PROPERTIES_MAP_BIND
        See Also:
        Constant Field Values
      • PROPERTY_FILENAME_PROP_KEY

        public static final java.lang.String PROPERTY_FILENAME_PROP_KEY
        See Also:
        Constant Field Values
      • PROPERTY_FILENAME_PROP_DEF

        public static final java.lang.String PROPERTY_FILENAME_PROP_DEF
        See Also:
        Constant Field Values
      • USER_DOMAIN_POOL_CLASS_PROP_KEY

        @Deprecated
        public static final java.lang.String USER_DOMAIN_POOL_CLASS_PROP_KEY
        Deprecated.
        moved to RepositoryFactory
        See Also:
        Constant Field Values
      • USER_DOMAIN_POOL_CLASS_PROP_VAL

        @Deprecated
        public static final java.lang.String USER_DOMAIN_POOL_CLASS_PROP_VAL
        Deprecated.
        moved to RepositoryFactory
        See Also:
        Constant Field Values
      • logManagerConfiguration

        public static java.lang.String logManagerConfiguration
    • Constructor Detail

      • ConfiguratorAbstract

        public ConfiguratorAbstract()
    • Method Detail

      • getMXBean

        public static java.lang.Object getMXBean​(java.lang.String objName)
      • loadFromPropertiesFiles

        public static void loadFromPropertiesFiles​(java.lang.String property_filenames,
                                                   java.util.Map<java.lang.String,​java.lang.Object> initProperties,
                                                   java.util.List<java.lang.String> initSettings)
      • loadFromPropertiesFiles

        public static void loadFromPropertiesFiles​(java.util.Map<java.lang.String,​java.lang.Object> initProperties,
                                                   java.util.List<java.lang.String> initSettings)
      • loadLogManagerConfig

        public static void loadLogManagerConfig​(java.lang.String config)
      • parseArgs

        public static void parseArgs​(java.util.Map<java.lang.String,​java.lang.Object> initProperties,
                                     java.util.List<java.lang.String> initSettings,
                                     java.lang.String[] args)
      • putMXBean

        public static void putMXBean​(java.lang.String objName,
                                     java.lang.Object bean)
      • initBindings

        public void initBindings​(javax.script.Bindings binds)
        Description copied from class: BasicComponent
        Initialize a mapping of key/value pairs which can be used in scripts loaded by the server
        Overrides:
        initBindings in class BasicComponent
        Parameters:
        binds - A mapping of key/value pairs, all of whose keys are Strings.
      • initializationCompleted

        public void initializationCompleted()
        Description copied from interface: ServerComponent
        Method is called by MessageRouter when all the startup components of the server have been loaded and configured through setProperties(...) call. At this point the whole server should be loaded and functional, except initializations taking place in this routine.
        Specified by:
        initializationCompleted in interface ServerComponent
        Overrides:
        initializationCompleted in class BasicComponent
      • parseArgs

        public void parseArgs​(java.lang.String[] args)
      • getDefaults

        public java.util.Map<java.lang.String,​java.lang.Object> getDefaults​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Description copied from interface: Configurable
        Returns default configuration settings for the component as a Map with keys as configuration property IDs and values as the configuration property values. All the default parameters returned from this method are later passed to the setProperties(...) method. Some of them may have changed value if they have been overwritten in the server configuration. The configuration property value can be of any of the basic types: int, long, boolean, String.
        Specified by:
        getDefaults in interface Configurable
        Overrides:
        getDefaults in class BasicComponent
        Parameters:
        params - is a Map with some initial properties set for the starting up server. These parameters can be used as a hints to generate component's default configuration.
        Returns:
        a Map with the component default configuration.
      • getDefConfigParams

        public java.util.Map<java.lang.String,​java.lang.Object> getDefConfigParams()
      • getMessageRouterClassName

        public java.lang.String getMessageRouterClassName()
      • isCorrectType

        public boolean isCorrectType​(ServerComponent component)
        Description copied from class: AbstractComponentRegistrator
        Method checks whether the component provides as method parameter is correct type that is implements special interface or extends special class. Result of the method determines whether the component can be added to the internal components collection.
        Specified by:
        isCorrectType in class AbstractComponentRegistrator<Configurable>
        Parameters:
        component - is a reference to the component being checked.
        Returns:
        a boolean value of true if the component is of a correct type and false otherwise.