Search in sources :

Example 1 with FramesGenericBuilderAdapter

use of org.whole.lang.frames.builders.FramesGenericBuilderAdapter in project whole by wholeplatform.

the class FramesLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FramesGenericBuilderAdapter((IFramesBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(FramesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FramesSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IFramesBuilder(org.whole.lang.frames.builders.IFramesBuilder) FramesSpecificBuilderAdapter(org.whole.lang.frames.builders.FramesSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) FramesGenericBuilderAdapter(org.whole.lang.frames.builders.FramesGenericBuilderAdapter) 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 FramesGenericBuilderAdapter (org.whole.lang.frames.builders.FramesGenericBuilderAdapter)1 FramesSpecificBuilderAdapter (org.whole.lang.frames.builders.FramesSpecificBuilderAdapter)1 IFramesBuilder (org.whole.lang.frames.builders.IFramesBuilder)1