Package com.aspectran.shell.service
Interface ShellService
-
- All Superinterfaces:
CoreService
- All Known Implementing Classes:
AbstractShellService,DefaultShellService
public interface ShellService extends CoreService
The Interface ShellService.Created: 2017. 10. 28.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShellConsolegetConsole()java.lang.StringgetGreetings()Returns the greeting message.booleanisExposable(java.lang.String transletName)Returns whether or not the translet can be exposed to the shell service.booleanisVerbose()Tests if the verbose mode is enabled.SessionAdapternewSessionAdapter()Create and return a new session adapter from the shell service.voidprintGreetings()Prints greeting message.voidprintHelp()Prints help information.voidsetGreetings(java.lang.String greetings)Specifies the greeting message.voidsetVerbose(boolean verbose)Enables or disables the verbose mode.Translettranslate(TransletCommandLine transletCommandLine)Executes translet.-
Methods inherited from interface com.aspectran.core.service.CoreService
getActivityContext, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
-
-
-
-
Method Detail
-
getConsole
ShellConsole getConsole()
-
isVerbose
boolean isVerbose()
Tests if the verbose mode is enabled. If verbose mode is on, a detailed description is printed each time the command is executed. Returns a flag indicating whether to show the description or not.- Returns:
- true if the verbose mode is enabled
-
setVerbose
void setVerbose(boolean verbose)
Enables or disables the verbose mode. If verbose mode is on, a detailed description is printed each time the command is executed. Sets a flag indicating whether to show the description or not.- Parameters:
verbose- true to enable the verbose mode; false to disable
-
getGreetings
java.lang.String getGreetings()
Returns the greeting message.- Returns:
- the greeting message
-
setGreetings
void setGreetings(java.lang.String greetings)
Specifies the greeting message.- Parameters:
greetings- the greeting message
-
printGreetings
void printGreetings()
Prints greeting message.
-
printHelp
void printHelp()
Prints help information.
-
isExposable
boolean isExposable(java.lang.String transletName)
Returns whether or not the translet can be exposed to the shell service.- Parameters:
transletName- the name of the translet to check- Returns:
- true if the translet can be exposed; false otherwise
-
newSessionAdapter
SessionAdapter newSessionAdapter()
Create and return a new session adapter from the shell service.- Returns:
- the session adapter
-
translate
Translet translate(TransletCommandLine transletCommandLine) throws TransletNotFoundException
Executes translet.- Parameters:
transletCommandLine- the translet command line- Returns:
- the
Transletinstance - Throws:
TransletNotFoundException
-
-