Exemplo n.º 1
0
 /**
  * Remove the context factory for the specified coordination type.
  *
  * @param coordinationTypeURI The coordination type.
  */
 public void removeContextFactory(String coordinationTypeURI) {
   Object localContextFactory = null;
   synchronized (contextFactoryMap) {
     localContextFactory = contextFactoryMap.remove(coordinationTypeURI);
   }
   if (localContextFactory != null) {
     ((ContextFactory) localContextFactory).uninstall(coordinationTypeURI);
   }
 }
Exemplo n.º 2
0
 /**
  * Add a context factory for the specified coordination type.
  *
  * @param coordinationTypeURI The coordination type.
  * @param contextFactory The context factory.
  */
 public void addContextFactory(String coordinationTypeURI, ContextFactory contextFactory) {
   synchronized (contextFactoryMap) {
     contextFactoryMap.put(coordinationTypeURI, contextFactory);
   }
   contextFactory.install(coordinationTypeURI);
 }