Package org.apache.geronimo.gshell.command.annotation

Examples of org.apache.geronimo.gshell.command.annotation.CommandComponent


    @Option(name="-h", aliases={"--help"}, description="Display this help message", requireOverride = true)
    private boolean displayHelp;

    public String getId() {
        CommandComponent cmd = getClass().getAnnotation(CommandComponent.class);
        if (cmd == null) {
            throw new IllegalStateException("Command id not found");
        }
        return cmd.id();
    }
View Full Code Here


        }
        return cmd.id();
    }

    public String getDescription() {
        CommandComponent cmd = getClass().getAnnotation(CommandComponent.class);
        if (cmd == null) {
            throw new IllegalStateException("Command description not found");
        }
        return cmd.description();
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.command.annotation.CommandComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.