Package com.netflix.governator.annotations

Examples of com.netflix.governator.annotations.Modules.include()


        private List<Class<? extends Module>> getIncludeList() {
            // Look for @Modules(includes={..})
            Builder<Class<? extends Module>> builder = ImmutableList.<Class<? extends Module>>builder();
            if (type != null) {
                Modules annot = type.getAnnotation(Modules.class);
                if (annot != null && annot.include() != null) {
                    builder.add(annot.include());
                }
               
                // Look for injected modules
                for (Dependency<?> dep : InjectionPoint.forConstructorOf(type).getDependencies()) {
View Full Code Here


            // Look for @Modules(includes={..})
            Builder<Class<? extends Module>> builder = ImmutableList.<Class<? extends Module>>builder();
            if (type != null) {
                Modules annot = type.getAnnotation(Modules.class);
                if (annot != null && annot.include() != null) {
                    builder.add(annot.include());
                }
               
                // Look for injected modules
                for (Dependency<?> dep : InjectionPoint.forConstructorOf(type).getDependencies()) {
                    Class<?> depType = dep.getKey().getTypeLiteral().getRawType();
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.