use of org.whole.lang.pojo.builders.PojoGenericBuilderAdapter in project whole by wholeplatform.
the class PojoLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new PojoLanguageKit());
platform.addOperationFactory(PojoLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new PojoGenericBuilderAdapter((IPojoBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(PojoLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new PojoSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(PojoLanguageKit.URI, NormalizerOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new PojoNormalizerVisitor();
}
});
}
Aggregations