Examples of AllowedPackages


Examples of org.jnode.annotation.AllowedPackages

            //lazy initialization of allowPackages to avoid startup failure
            if (allowedPackages == null) {
                String class_name = typeDescr.substring(1, typeDescr.length() - 1).replace('/', '.');
                try {
                    Class<Annotation> cls = (Class<Annotation>) Class.forName(class_name);
                    final AllowedPackages ann = cls.getAnnotation(AllowedPackages.class);
                    if (ann != null) {
                        allowedPackages = ann.value();
                    } else {
                        allowedPackages = EMPTY_PACKAGES;
                    }
                } catch (ClassNotFoundException x) {
                    throw new RuntimeException(x);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.