package org.openecomp.core.factory.impl;
+
import static org.openecomp.core.utilities.CommonMethods.isEmpty;
import static org.openecomp.core.utilities.CommonMethods.newInstance;
import org.openecomp.sdc.common.errors.ErrorCategory;
import org.openecomp.sdc.common.errors.ErrorCode;
-
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
-/**
- * The type Abstract factory base.
- */
public abstract class AbstractFactoryBase {
/**
* Temporary registry of default implementations. The map keeps class names rather then class
- * types to allow unloading of those classes from memory by garbage collector if
- * factory is not actually used.
+ * types to allow unloading of those classes from memory by garbage collector if factory is not
+ * actually used.
*/
private static Map<String, String> registry = new ConcurrentHashMap<String, String>();
new ConcurrentHashMap<String, AbstractFactoryBase>();
/**
- * Registers implementor for an abstract factory. The method accepts Java classes rather
- * then class names to ensure type safety at compilation time.
+ * Registers implementor for an abstract factory. The method accepts Java classes rather then
+ * class names to ensure type safety at compilation time.
*
* @param <I> Java interface type instantiated by abstract factory
* @param <F> Type specific abstract factory for concrete Java interface
registry.put(factory.getName(), impl.getName());
} // registerFactory
- /**
- * Register factory.
- *
- * @param factoryName the factory name
- * @param implName the impl name
- */
// TODO: Remove
protected static void registerFactory(String factoryName, String implName) {
registry.put(factoryName, implName);
}
}
- /**
- * Init.
- */
protected void init() {
}
- /**
- * Stop.
- */
protected void stop() {
}