01: package org.osbl.concern;
02:
03: import org.osbl.Module;
04: import org.osbl.ObjectLocators;
05: import org.concern.model.Process;
06: import org.concern.Subject;
07: import org.concern.Work;
08:
09: public class ConcernModule implements Module {
10: ObjectLocators objectLocators;
11:
12: public void setObjectLocators(ObjectLocators objectLocators) {
13: this .objectLocators = objectLocators;
14: }
15:
16: public void initialize() {
17: objectLocators.registerObjectLocator(Process.class,
18: new ProcessLocator());
19: objectLocators.registerObjectLocator(Subject.class,
20: new SubjectLocator());
21: objectLocators.registerObjectLocator(Work.class,
22: new TaskLocator());
23: }
24: }
|