All Downloads are FREE. Search and download functionalities are using the official Maven repository.

colesico.framework.dslvalidator.t9n.ConfigDefaultIoclet Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
// This is automatically generated file. Do not modify!
package colesico.framework.dslvalidator.t9n;

import colesico.framework.assist.LazySingleton;
import colesico.framework.assist.codegen.Genstamp;
import colesico.framework.ioc.TypeKey;
import colesico.framework.ioc.ioclet.AdvancedIoc;
import colesico.framework.ioc.ioclet.Catalog;
import colesico.framework.ioc.ioclet.Factory;
import colesico.framework.ioc.ioclet.Ioclet;
import colesico.framework.ioc.ioclet.SingletonFactory;
import colesico.framework.resource.ResourceConfig;

@Genstamp(
        generator = "colesico.framework.ioc.codegen.generator.IocletGenerator",
        timestamp = "2019-02-11T20:18:35.768Z",
        hashId = "3ff054d3-9c8e-4e24-b739-fdf98dc1ac30",
        comments = "Producer: colesico.framework.dslvalidator.t9n.ConfigDefaultProducer"
)
public final class ConfigDefaultIoclet implements Ioclet {
    private final LazySingleton producer = new LazySingleton() {
        @Override
        public final ConfigDefaultProducer create() {
            return new ConfigDefaultProducer();
        }
    };

    @Override
    public final String getProducerId() {
        return "colesico.framework.dslvalidator.t9n.ConfigDefaultProducer";
    }

    @Override
    public final String getRank() {
        return "default";
    }

    public Factory getResourceConfFactory0() {
        return new SingletonFactory() {
            private Factory configFac;

            @Override
            public final void setup(final AdvancedIoc ioc) {
                this.configFac=ioc.factory(new TypeKey(ResourceConf.class));
            }

            @Override
            public final ResourceConfig create(final Object message) {
                return producer.get().getResourceConf(this.configFac.get(message));
            }
        };
    }

    public Factory getResourceConfFactory1() {
        return new Factory() {
            @Override
            public final void setup(final AdvancedIoc ioc) {
            }

            @Override
            public final ResourceConf get(final Object message) {
                return new ResourceConf();
            }
        };
    }

    @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());
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy