Search in sources :

Example 1 with GrammarsGenericBuilderAdapter

use of org.whole.lang.grammars.builders.GrammarsGenericBuilderAdapter in project whole by wholeplatform.

the class GrammarsLanguageDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addLanguageKit(new GrammarsLanguageKit());
    platform.addOperationFactory(GrammarsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new GrammarsGenericBuilderAdapter((IGrammarsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(GrammarsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new GrammarsSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) GrammarsGenericBuilderAdapter(org.whole.lang.grammars.builders.GrammarsGenericBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) IGrammarsBuilder(org.whole.lang.grammars.builders.IGrammarsBuilder) GrammarsSpecificBuilderAdapter(org.whole.lang.grammars.builders.GrammarsSpecificBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 GrammarsGenericBuilderAdapter (org.whole.lang.grammars.builders.GrammarsGenericBuilderAdapter)1 GrammarsSpecificBuilderAdapter (org.whole.lang.grammars.builders.GrammarsSpecificBuilderAdapter)1 IGrammarsBuilder (org.whole.lang.grammars.builders.IGrammarsBuilder)1