colesico.framework.dslvalidator.t9n.TranslationIoclet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of colesico-validation Show documentation
Show all versions of colesico-validation Show documentation
Colesico framework data bean validation assistant and simple dsl validator
// 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.translation.TranslationKit;
@Genstamp(
generator = "colesico.framework.ioc.codegen.generator.IocletGenerator",
timestamp = "2019-02-11T20:18:35.795Z",
hashId = "f381063b-58a1-49a8-98b4-3f004ca26d56",
comments = "Producer: colesico.framework.dslvalidator.t9n.TranslationProducer"
)
public final class TranslationIoclet implements Ioclet {
private final LazySingleton producer = new LazySingleton() {
@Override
public final TranslationProducer create() {
return new TranslationProducer();
}
};
@Override
public final String getProducerId() {
return "colesico.framework.dslvalidator.t9n.TranslationProducer";
}
@Override
public final String getRank() {
return "minor";
}
public Factory getValidatorMessages0Factory0() {
return new Factory() {
private Factory implFac;
@Override
public final void setup(final AdvancedIoc ioc) {
this.implFac=ioc.factory(new TypeKey(ValidatorMessagesImpl.class));
}
@Override
public final ValidatorMessages get(final Object message) {
return producer.get().getValidatorMessages0(this.implFac.get(message));
}
};
}
public Factory getValidatorMessagesImplFactory1() {
return new SingletonFactory() {
private Factory translationKitFac;
@Override
public final void setup(final AdvancedIoc ioc) {
this.translationKitFac=ioc.factory(new TypeKey(TranslationKit.class));
}
@Override
public final ValidatorMessagesImpl create(final Object message) {
return new ValidatorMessagesImpl(this.translationKitFac.get(message));
}
};
}
@Override
public final void addFactories(final Catalog catalog) {
if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.dslvalidator.t9n.ValidatorMessages"),false))){
catalog.add(getValidatorMessages0Factory0());
}
if(catalog.accept(Catalog.Entry.of(new TypeKey("colesico.framework.dslvalidator.t9n.ValidatorMessagesImpl"),false))){
catalog.add(getValidatorMessagesImplFactory1());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy