Ejemplo n.º 1
0
 /** Returns the ExtensionPoint to use for the Locator values. */
 private ExtensionPoint getExtensionPoint() {
   ExtensionPointManager manager = DefaultExtensionPointManager.getManager();
   String moduleName = getLocatorName();
   // synchronize the retrieval of the ExtensionPoint
   synchronized (lock) {
     ExtensionPoint extensionPoint = manager.get(moduleName);
     if (extensionPoint == null) {
       extensionPoint = manager.add(moduleName);
     }
     return extensionPoint;
   }
 }
Ejemplo n.º 2
0
 public void register(String name, LocatorObjectFactory factory) {
   DefaultExtensionPointManager.getManager().add(getLocatorName()).append(name, null, factory);
 }
Ejemplo n.º 3
0
 public void register(String name, String description, Class clazz) {
   DefaultExtensionPointManager.getManager()
       .add(getLocatorName())
       .append(name, description, clazz);
 }