Package com.sun.enterprise.admin.cli
Class CLIContainer
java.lang.Object
com.sun.enterprise.admin.cli.CLIContainer
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.
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalCommand(String name) org.glassfish.hk2.api.ServiceLocatorvoidsetEnvironment(Environment environment) voidsetProgramOptions(ProgramOptions programOptions)
-
Constructor Details
-
CLIContainer
-
-
Method Details
-
getServiceLocator
public org.glassfish.hk2.api.ServiceLocator getServiceLocator() -
getLocalCommand
-
getLocalCommandsNames
-
setProgramOptions
-
setEnvironment
-
getProgramOptions
-
getEnvironment
-