Package com.sun.grid.jgdi.util.shell

Examples of com.sun.grid.jgdi.util.shell.CommandAnnotation


     * @throws java.lang.Exception
     */
    @SuppressWarnings(value = "unchecked")
    private void addAnnotatedCommand(Class cls) throws Exception {
        AbstractCommand cmd = null;
        CommandAnnotation ca = (CommandAnnotation) cls.getAnnotation(CommandAnnotation.class);
        if (AbstractCommand.class.isAssignableFrom(cls)) {

            cmdMap.put(ca.value(), cls);
            if (AnnotatedCommand.class.isAssignableFrom(cls)) {
                AnnotatedCommand.initOptionDescriptorMap(cls, out, err);
            }
        } else {
            throw new IllegalStateException("Can not assign " + cls.getName() + " from Command.class");
View Full Code Here

TOP

Related Classes of com.sun.grid.jgdi.util.shell.CommandAnnotation

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.