01: package org.osbl.identity;
02:
03: import org.osbl.*;
04: import org.osbl.ObjectLocators;
05: import org.osbl.identity.model.*;
06: import org.osbl.plugin.PluginManager;
07: import org.osbl.plugin.Extension;
08:
09: public class IdentityModule implements Module {
10: PluginManager pluginManager;
11: ObjectLocators objectLocators;
12:
13: public void setPluginManager(PluginManager pluginManager) {
14: this .pluginManager = pluginManager;
15: }
16:
17: public void setObjectLocators(ObjectLocators objectLocators) {
18: this .objectLocators = objectLocators;
19: }
20:
21: public void initialize() {
22: pluginManager.registerExtension(new Extension("UserConcrete",
23: Identity.class.getName() + ".concrete", User.class));
24: pluginManager.registerExtension(new Extension("PersonConcrete",
25: Identity.class.getName() + ".concrete", Person.class));
26: pluginManager.registerExtension(new Extension(
27: "DepartmentConcrete", Identity.class.getName()
28: + ".concrete", Department.class));
29:
30: objectLocators.registerObjectLocator(Identity.class,
31: new IdentityLocator());
32: }
33: }
|