Class HooksConfigImpl

    • Constructor Detail

      • HooksConfigImpl

        public HooksConfigImpl()
      • HooksConfigImpl

        public HooksConfigImpl​(java.lang.Object config)
    • Method Detail

      • removeHook

        public void removeHook​(java.lang.Object name)
        Specified by:
        removeHook in interface HooksConfig
      • couldInherit

        public boolean couldInherit​(java.lang.String name)
        Description copied from interface: HooksConfig
        Could this hook inherit data, if it did not have local data?
        Specified by:
        couldInherit in interface HooksConfig
        Parameters:
        name - Name of Hook
        Returns:
        true if there is data that could be inherited
      • flatten

        public boolean flatten​(java.util.List<java.lang.String> excludedNS)
                        throws java.lang.Exception
        flatten - combines all values from this object and its inherited objects into one single config object. After flattening, the object is a complete object with no inherited values except those from the excludedNS list.
        Specified by:
        flatten in interface BaseConfiguration
        Overrides:
        flatten in class AttributeMapConfigImpl
        Parameters:
        excludedNS - List of namespaces to exclude from flattening
        Returns:
        true if object attempted flattening, FALSE is this object inherits from an excluded namespace or has no inheritance
        Throws:
        java.lang.Exception
      • search

        public java.util.List<javax.naming.Binding> search​(java.lang.String text,
                                                           int options,
                                                           int sizelimit,
                                                           java.util.List<javax.naming.Binding> results)
        Description copied from class: BaseConfigurationImpl
        Searches a configuration object and optionally its children for a specific key or value.
        Specified by:
        search in interface BaseConfiguration
        Overrides:
        search in class BaseConfigurationImpl
        Parameters:
        text - The search text
        options - Search options (oneLevel=1, exactCase=2, regExp=4, paramName=8)
        sizelimit - Max number of hits returned
        results - A list of results.
        Returns:
        the results from the performed search added into the provided results parameter.
      • getActiveHooks

        public java.util.ArrayList<HookConfig> getActiveHooks()
        Returns a list of enabled hooks for this configuration.
        Specified by:
        getActiveHooks in interface HooksConfig
        Since:
        7.0
      • getHook

        public HookConfig getHook​(java.lang.Object name,
                                  boolean create)
        Returns a hook or optionally creates it
        Specified by:
        getHook in interface HooksConfig
        Since:
        7.0
      • getKeys

        public java.util.List<java.lang.String> getKeys​(int level)
        Description copied from class: BaseConfigurationImpl
        Returns a list of keys in this object.
        Specified by:
        getKeys in interface BaseConfiguration
        Overrides:
        getKeys in class BaseConfigurationImpl
        Parameters:
        level - can have these values:
      • ONE_LEVEL - only simple key/value items are returned.
      • SUBTREE - all keys are returned regardless of whether they are complex (TreeMap) or simple (String, Boolean, Integer, Vector ).
      • RECURSIVE - inherited keys are returned as well.
      • Returns:
        The list of keys.