Package com.netflix.governator.guice.annotations

Examples of com.netflix.governator.guice.annotations.Bootstrap.bootstrap()


                    Bootstrap bootstrap = type.getAnnotation(Bootstrap.class);
                    if (bootstrap != null) {
                      boolean added = false;
                      // This is a suite
                      if (!bootstrap.value().equals(Bootstrap.NullLifecycleInjectorBuilderSuite.class)) {
                            LOG.info("Adding Suite {}", bootstrap.bootstrap());
                        suites
                              .addBinding()
                              .to(bootstrap.value())
                              .asEagerSingleton();
                        added = true;
View Full Code Here


                              .to(bootstrap.value())
                              .asEagerSingleton();
                        added = true;
                      }
                      // This is a bootstrap module
                      if (!bootstrap.bootstrap().equals(Bootstrap.NullBootstrapModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
View Full Code Here

                      }
                      // This is a bootstrap module
                      if (!bootstrap.bootstrap().equals(Bootstrap.NullBootstrapModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
                              .to(bootstrap.bootstrap())
                              .asEagerSingleton();
                          // Make this annotation injectable into any plain Module
View Full Code Here

                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
                              .to(bootstrap.bootstrap())
                              .asEagerSingleton();
                          // Make this annotation injectable into any plain Module
                          builder.withAdditionalBootstrapModules(forAnnotation(annot));
                      }
                      // This is a plain guice module
View Full Code Here

                      }
                      // This is a plain guice module
                      if (!bootstrap.module().equals(Bootstrap.NullModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a BootstrapModule");
                        added = true;
                            LOG.info("Adding Module {}", bootstrap.bootstrap());
                          builder.withAdditionalModuleClasses(bootstrap.module());
                          // Make the annotation injectable into the module
                          builder.withAdditionalBootstrapModules(forAnnotation(annot));
                      }
                           
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.