@Override public final void setup(final AdvancedIoc ioc) { this.localizingToolFac=ioc.factory(new TypeKey(LocalizingTool.class)); this.rewritingToolFac=ioc.factory(new TypeKey(RewritingTool.class)); this.evaluationToolFac=ioc.factory(new TypeKey(EvaluationTool.class)); this.configsFac=ioc.factoryOrNull(new TypeKey(ResourceConfig.class)); }
/** * Shortcut method * The method uses a TypeKey and null injection message to obtain an instance. * * @param type * @param <T> * @return */ default <T> T instance(Class<T> type) throws UnsatisfiedInjectionException { return instance(new TypeKey<>(type), null); }
/** * Shortcut method * The method uses a TypeKey and null injection message to obtain a provider. * * @param type * @param <T> * @return */ default <T> Provider<T> provider(Class<T> type) throws UnsatisfiedInjectionException { return provider(new TypeKey<>(type), null); }
/** * Shortcut method * The method uses a TypeKey and null injection message to obtain a plyprovider. * * @return */ default <T> Polysupplier<T> polysupplier(Class<T> type) { return polysupplier(new TypeKey<>(type)); } }
@Override public final void setup(final AdvancedIoc ioc) { this.threadScopeFac=ioc.factory(new TypeKey(ThreadScope.class)); this.ioc=ioc; }
@Override public final void addFactories(final Catalog catalog) { if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.resource.ResourceConfig"),true))){ catalog.add(getResourceConfFactory0()); } if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.dslvalidator.t9n.ResourceConf"),false))){ catalog.add(getResourceConfFactory1()); } } }
@Override public final EventBusImpl create(final Object message) { final Factory<EventsListener> listenersSuppVar=ioc.factoryOrNull(new TypeKey(EventsListener.class)); return new EventBusImpl(new DefaultPolysupplier(listenersSuppVar)); } };
@Override public final void addFactories(final Catalog catalog) { if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.webstatic.StaticContent.Builder"),false))){ catalog.add(getBuilderFactory0()); } if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.webstatic.internal.StaticContentBuilderImpl"),false))){ catalog.add(getStaticContentBuilderImplFactory1()); } } }
@Override public final void addFactories(final Catalog catalog) { if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.weblet.t9n.WebletMessages"),false))){ catalog.add(getWebletMessages0Factory0()); } if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.weblet.t9n.WebletMessagesImpl"),false))){ catalog.add(getWebletMessagesImplFactory1()); } } }
@Override public final void addFactories(final Catalog catalog) { if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.eventbus.EventBus"),false))){ catalog.add(getEventBusFactory0()); } if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.eventbus.internal.EventBusImpl"),false))){ catalog.add(getEventBusImplFactory1()); } } }