Class CLIContainer


  • public final class CLIContainer
    extends Object
    This exists mainly due performance reason. After construct it starts hk2 descriptors parsing because is is significantly more effective then HK2 initialization.
    It retrieve list of CLICommands and use it to determine if requested command is local or remote.
    For local CLICommand which injects just ProgramOptions or Environment it can also create requested instance. For other command uses lazy loaded HK2 ServiceLocator.
    Author:
    martinmares
    • Method Detail

      • getServiceLocator

        public org.glassfish.hk2.api.ServiceLocator getServiceLocator()
      • getLocalCommandsNames

        public Set<String> getLocalCommandsNames()
      • setProgramOptions

        public void setProgramOptions​(ProgramOptions programOptions)
      • setEnvironment

        public void setEnvironment​(Environment environment)