public EasyWrap addDefaultTools() { EasyFactoryConfiguration.this.addDefaultTools(); return this; }
/** * @param includeDefaults Sets whether this instance should start with the * {@link ConfigurationUtils#getDefaultTools()} configuration or not. * @param source a string identify where this instance was created, or * something else useful to identify this instance during debugging */ public EasyFactoryConfiguration(boolean includeDefaults, String source) { super(EasyFactoryConfiguration.class, source); if (includeDefaults) { addDefaultTools(); // now put the root source last, since the defaults were really first // and nothing could have been added prior to them List<String> sources = getSources(); String first = sources.remove(0); sources.add(first); } }