/** * 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); } }
/** * 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); }