Class BaseGetConfigSourceConfigurationCommand<C extends ConfigSourceConfiguration>

    • Field Detail

      • habitat

        @Inject
        protected org.glassfish.hk2.api.ServiceLocator habitat
    • Constructor Detail

      • BaseGetConfigSourceConfigurationCommand

        public BaseGetConfigSourceConfigurationCommand()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information
      • listConfiguration

        protected String listConfiguration​(C configuration)
        Parameters:
        configuration - the configuration to print
        Returns:
        A column formatted string representing the configuration
        See Also:
        #getConfigSourceConfiguration(PayaraConfigSourceConfiguration)
      • getConfigSourceConfiguration

        protected Map<String,​Object> getConfigSourceConfiguration​(C configuration)
        Parameters:
        configuration - the configuration to get properties from
        Returns:
        a map from user readable attribute names to their values