public abstract class CliHandlerBase extends org.osgl.Osgl.F1<CliContext,java.lang.Void> implements CliHandler
Destroyable.Util
Constructor and Description |
---|
CliHandlerBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
appliedIn(Act.Mode mode)
Check if this handler applied in a specific
Act.Mode |
java.lang.Void |
apply(CliContext context) |
void |
destroy() |
boolean |
isDestroyed() |
protected void |
releaseResources() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
scope() |
java.lang.String |
summary()
Returns the summary of the command.
|
andThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, times
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commandLine, handle, options
public final java.lang.Void apply(CliContext context) throws org.osgl.exception.NotAppliedException, org.osgl.Osgl.Break
apply
in interface org.osgl.Osgl.Function<CliContext,java.lang.Void>
org.osgl.exception.NotAppliedException
org.osgl.Osgl.Break
public boolean appliedIn(Act.Mode mode)
CliHandler
Check if this handler applied in a specific Act.Mode
appliedIn
in interface CliHandler
true
if this handler applied in the mode, or false
otherwisepublic void destroy()
destroy
in interface Destroyable
public java.lang.Class<? extends java.lang.annotation.Annotation> scope()
scope
in interface Destroyable
public java.lang.String summary()
CliHandler
Returns the summary of the command. This is used to display the help information about this command. If null
or empty string returned, then there will be no summary section in the help for this command
summary
in interface CliHandler
public boolean isDestroyed()
isDestroyed
in interface Destroyable
protected void releaseResources()
Copyright © 2014–2017 ActFramework. All rights reserved.