Package org.jdesktop.wonderland.common.security.annotation

Examples of org.jdesktop.wonderland.common.security.annotation.Actions


     * @param clazz the class to search
     * @param actions the set of actions to add to
     * @return the actions for the class
     */
    private void getActions(Class clazz, Set<Action> actions) {
        Actions classActions = (Actions) clazz.getAnnotation(Actions.class);

        if (classActions != null) {
            for (Class ac : classActions.value()) {
                actions.add(Action.getInstance(ac));
            }
        }

        // search the superclass for any actions
View Full Code Here


        if (out == null) {
            out = new HashSet<Action>();
           
            // get the actions from the actions annotation
            Actions actions = (Actions) clazz.getAnnotation(Actions.class);
            if (actions != null) {
                for (Class<Action> c : actions.value()) {
                    try {
                        out.add(c.newInstance());
                    } catch (InstantiationException ie) {
                        throw new IllegalStateException("Error getting " +
                                " actions for " + clazz, ie);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.security.annotation.Actions

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.