/** * Performs no runtime checks. This configuration * is faster than {@link #forDevelopment()}. * It can be used in production. * * @return a production configuration. */ public static Configuration forProduction() { return new Configuration(); }
/** * Performs many runtime checks. This configuration * reduces performance. It should be used only during development. * The checks performed are: * <ul> * <li>cycle detection: check that not 2 classes depend on each other. Note that if of them uses * a * Lazy instance * of the other or a Producer, then there is no such cycle.</li> * <li>illegal binding detection: check no scope annotated class is used as the target of a * binding.</li> * </ul> * * @return a development configuration. */ public static Configuration forDevelopment() { final Configuration configuration = new Configuration(); configuration.runtimeCheckConfiguration = new RuntimeCheckOnConfiguration(); return configuration; }
/** * Performs no runtime checks. This configuration * is faster than {@link #forDevelopment()}. * It can be used in production. * * @return a production configuration. */ public static Configuration forProduction() { return new Configuration(); }
/** * Performs many runtime checks. This configuration * reduces performance. It should be used only during development. * The checks performed are: * <ul> * <li>cycle detection: check that not 2 classes depend on each other. Note that if of them uses * a * Lazy instance * of the other or a Producer, then there is no such cycle.</li> * <li>illegal binding detection: check no scope annotated class is used as the target of a * binding.</li> * </ul> * * @return a development configuration. */ public static Configuration forDevelopment() { final Configuration configuration = new Configuration(); configuration.runtimeCheckConfiguration = new RuntimeCheckOnConfiguration(); return configuration; }