Search in sources :

Example 1 with WorkflowsGenericBuilderAdapter

use of org.whole.lang.workflows.builders.WorkflowsGenericBuilderAdapter in project whole by wholeplatform.

the class WorkflowsLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new WorkflowsGenericBuilderAdapter((IWorkflowsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(WorkflowsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new WorkflowsSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) WorkflowsGenericBuilderAdapter(org.whole.lang.workflows.builders.WorkflowsGenericBuilderAdapter) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) IWorkflowsBuilder(org.whole.lang.workflows.builders.IWorkflowsBuilder) WorkflowsSpecificBuilderAdapter(org.whole.lang.workflows.builders.WorkflowsSpecificBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IWorkflowsBuilder (org.whole.lang.workflows.builders.IWorkflowsBuilder)1 WorkflowsGenericBuilderAdapter (org.whole.lang.workflows.builders.WorkflowsGenericBuilderAdapter)1 WorkflowsSpecificBuilderAdapter (org.whole.lang.workflows.builders.WorkflowsSpecificBuilderAdapter)1