Search in sources :

Example 1 with RedBlackTreeSpecificBuilderAdapter

use of org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeSpecificBuilderAdapter in project whole by wholeplatform.

the class RedBlackTreeLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new RedBlackTreeGenericBuilderAdapter((IRedBlackTreeBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(RedBlackTreeLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new RedBlackTreeSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) RedBlackTreeGenericBuilderAdapter(org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeGenericBuilderAdapter) IRedBlackTreeBuilder(org.whole.examples.datatypes.redblacktree.builders.IRedBlackTreeBuilder) RedBlackTreeSpecificBuilderAdapter(org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory)

Aggregations

IRedBlackTreeBuilder (org.whole.examples.datatypes.redblacktree.builders.IRedBlackTreeBuilder)1 RedBlackTreeGenericBuilderAdapter (org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeGenericBuilderAdapter)1 RedBlackTreeSpecificBuilderAdapter (org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeSpecificBuilderAdapter)1 IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1