Class CockpitModuleConfigurationContextStrategy

    • Constructor Detail

      • CockpitModuleConfigurationContextStrategy

        public CockpitModuleConfigurationContextStrategy()
    • Method Detail

      • isResettable

        public boolean isResettable()
        Description copied from interface: CockpitConfigurationContextStrategy
        Checks if value of strategy's attribute should be reset up to original value after match.

        Search algorithm after a match looks for parent contexts. There is a possibility, that some of attributes should be reset to original value before looking for parents (i.e. module).

        Specified by:
        isResettable in interface CockpitConfigurationContextStrategy
        Returns:
        true if value should be reset
      • getModuleNames

        protected java.util.List<java.lang.String> getModuleNames()
      • valueMatches

        public boolean valueMatches​(java.lang.String contextValue,
                                    java.lang.String value)
        Description copied from interface: CockpitConfigurationContextStrategy
        Checks if provided value matches the one defined in configuration context.
        Specified by:
        valueMatches in interface CockpitConfigurationContextStrategy
        Parameters:
        contextValue - value defined in configuration context
        value - value to be checked
        Returns:
        true if provided value matches the one defined in configuration context
      • setCockpitModuleConnector

        public void setCockpitModuleConnector​(CockpitModuleConnector cockpitModuleConnector)
      • getInitialModules

        public java.util.List<java.lang.String> getInitialModules()
      • setInitialModules

        public void setInitialModules​(java.util.List<java.lang.String> initialModules)