KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > ExpressionBuilderMgr


1 package org.enhydra.shark;
2
3 import org.enhydra.shark.api.client.wfservice.ExpressionBuilderManager;
4 import org.enhydra.shark.api.common.ActivityIteratorExpressionBuilder;
5 import org.enhydra.shark.api.common.AssignmentIteratorExpressionBuilder;
6 import org.enhydra.shark.api.common.EventAuditIteratorExpressionBuilder;
7 import org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder;
8 import org.enhydra.shark.api.common.ProcessMgrIteratorExpressionBuilder;
9 import org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder;
10 import org.enhydra.shark.api.internal.working.CallbackUtilities;
11 import org.enhydra.shark.expressionbuilders.ActivityIteratorExpressionBuilderDODS;
12 import org.enhydra.shark.expressionbuilders.AssignmentIteratorExpressionBuilderDODS;
13 import org.enhydra.shark.expressionbuilders.ProcessIteratorExpressionBuilderDODS;
14 import org.enhydra.shark.expressionbuilders.ProcessMgrIteratorExpressionBuilderDODS;
15 import org.enhydra.shark.expressionbuilders.ResourceIteratorExpressionBuilderDODS;
16
17 /**
18  * Class ExpressionBuilderMgr
19  *
20  * @author Sasa Bojanic
21  */

22 public class ExpressionBuilderMgr implements ExpressionBuilderManager {
23
24    private CallbackUtilities cus;
25
26    protected ExpressionBuilderMgr() {
27       this.cus = SharkEngineManager.getInstance().getCallbackUtilities();
28    }
29
30    public ActivityIteratorExpressionBuilder getActivityIteratorExpressionBuilder() {
31       return new ActivityIteratorExpressionBuilderDODS(cus.getProperties());
32    }
33
34    public AssignmentIteratorExpressionBuilder getAssignmentIteratorExpressionBuilder() {
35       return new AssignmentIteratorExpressionBuilderDODS(cus.getProperties());
36    }
37
38    public EventAuditIteratorExpressionBuilder getEventAuditIteratorExpressionBuilder() {
39       throw new RuntimeException JavaDoc("Not implemented yet!");
40       //return new EventAuditIteratorExpressionBuilderDODS(cus.getProperties());
41
}
42
43    public ProcessIteratorExpressionBuilder getProcessIteratorExpressionBuilder() {
44       return new ProcessIteratorExpressionBuilderDODS(cus.getProperties());
45    }
46
47    public ProcessMgrIteratorExpressionBuilder getProcessMgrIteratorExpressionBuilder() {
48       return new ProcessMgrIteratorExpressionBuilderDODS(cus.getProperties());
49
50    }
51
52    public ResourceIteratorExpressionBuilder getResourceIteratorExpressionBuilder() {
53       return new ResourceIteratorExpressionBuilderDODS(cus.getProperties());
54    }
55 }
Popular Tags