protected void doEnable()

in gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/bundle/CommandBundle.java [92:114]


    protected void doEnable() throws Exception {
        // Create links commands
        if (linkCommands == null) {
            linkCommands = new ArrayList<Command>();
            for (Link link : links) {
                LinkCommand cmd = new LinkCommand(commandRegistry, link.getTarget());
                cmd.setLocation(new CommandLocationImpl(link.getName()));
                linkCommands.add(cmd);
            }
        }

        for (Command command : commands) {
            commandRegistry.registerCommand(command);
        }

        for (Command command : linkCommands) {
            commandRegistry.registerCommand(command);
        }

        for (Alias alias : aliases) {
            aliasRegistry.registerAlias(alias.getName(), alias.getAlias());
        }
    }