@Test(expected = ClassHierarchyException.class) public void errorOnStaticTimeSet() throws BindException, InjectionException { StaticTimeSet.CONF.assertStaticClean(); }
public void assertStaticClean() throws ClassHierarchyException { if (!( setImpls.isEmpty() && setImplSets.isEmpty() && setLateImplSets.isEmpty() && setParamSets.isEmpty() && setLateImpls.isEmpty() && setParams.isEmpty() && setImplLists.isEmpty() && setParamLists.isEmpty() )) { throw new ClassHierarchyException("Detected statically set ConfigurationModule Parameter / Implementation. " + "set() should only be used dynamically. Use bind...() instead."); } }
ConfigurationModule { public void assertStaticClean() throws ClassHierarchyException { if (!( setImpls.isEmpty() && setImplSets.isEmpty() && setLateImplSets.isEmpty() && setParamSets.isEmpty() && setLateImpls.isEmpty() && setParams.isEmpty() && setImplLists.isEmpty() && setParamLists.isEmpty() )) { throw new ClassHierarchyException("Detected statically set ConfigurationModule Parameter / Implementation. " + "set() should only be used dynamically. Use bind...() instead."); } } }
ConfigurationModule { public void assertStaticClean() throws ClassHierarchyException { if (!( setImpls.isEmpty() && setImplSets.isEmpty() && setLateImplSets.isEmpty() && setParamSets.isEmpty() && setLateImpls.isEmpty() && setParams.isEmpty() && setImplLists.isEmpty() && setParamLists.isEmpty() )) { throw new ClassHierarchyException("Detected statically set ConfigurationModule Parameter / Implementation. " + "set() should only be used dynamically. Use bind...() instead."); } } protected  ConfigurationModule(final ConfigurationModuleBuilder builder); }
ConfigurationModule { public void assertStaticClean() throws ClassHierarchyException { if (!( setImpls.isEmpty() && setImplSets.isEmpty() && setLateImplSets.isEmpty() && setParamSets.isEmpty() && setLateImpls.isEmpty() && setParams.isEmpty() && setImplLists.isEmpty() && setParamLists.isEmpty() )) { throw new ClassHierarchyException("Detected statically set ConfigurationModule Parameter / Implementation. " + "set() should only be used dynamically. Use bind...() instead."); } } protected  ConfigurationModule(final ConfigurationModuleBuilder builder); final ConfigurationModule set(final Impl<T> opt, final Class<? extends T> impl); final ConfigurationModule set(final Impl<T> opt, final String impl); final ConfigurationModule set(final Impl<List> opt, final List implList); final ConfigurationModule set(final Param<T> opt, final Class<? extends T> val); final ConfigurationModule set(final Param<Boolean> opt, final boolean val); final ConfigurationModule set(final Param<? extends Number> opt, final Number val); final ConfigurationModule set(final Param<T> opt, final String val); final ConfigurationModule setMultiple(final Param<T> opt, final Iterable<String> values); final ConfigurationModule setMultiple(final Param<T> opt, final String... values); final ConfigurationModule set(final Param<List> opt, final List implList); @SuppressWarnings({"unchecked", "rawtypes"}) Configuration build(); Set<NamedParameterNode<?>> getBoundNamedParameters(); List<Entry<String, String>> toStringPairs(); String toPrettyString(); void assertStaticClean(); ConfigurationModuleBuilder getBuilder(); }
ConfigurationModule { public void assertStaticClean() throws ClassHierarchyException { if (!( setImpls.isEmpty() && setImplSets.isEmpty() && setLateImplSets.isEmpty() && setParamSets.isEmpty() && setLateImpls.isEmpty() && setParams.isEmpty() && setImplLists.isEmpty() && setParamLists.isEmpty() )) { throw new ClassHierarchyException("Detected statically set ConfigurationModule Parameter / Implementation. " + "set() should only be used dynamically. Use bind...() instead."); } } protected  ConfigurationModule(final ConfigurationModuleBuilder builder); final ConfigurationModule set(final Impl<T> opt, final Class<? extends T> impl); final ConfigurationModule set(final Impl<T> opt, final String impl); final ConfigurationModule set(final Impl<List> opt, final List implList); final ConfigurationModule set(final Param<T> opt, final Class<? extends T> val); final ConfigurationModule set(final Param<Boolean> opt, final boolean val); final ConfigurationModule set(final Param<? extends Number> opt, final Number val); final ConfigurationModule set(final Param<T> opt, final String val); final ConfigurationModule setMultiple(final Param<T> opt, final Iterable<String> values); final ConfigurationModule setMultiple(final Param<T> opt, final String... values); final ConfigurationModule set(final Param<List> opt, final List implList); @SuppressWarnings({"unchecked", "rawtypes"}) Configuration build(); Set<NamedParameterNode<?>> getBoundNamedParameters(); List<Entry<String, String>> toStringPairs(); String toPrettyString(); void assertStaticClean(); ConfigurationModuleBuilder getBuilder();  }