Class DocHandlerFactory
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,DocHandlerFacade>
-
- org.fugerit.java.doc.base.facade.DocHandlerFactory
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,DocHandlerFacade>
public class DocHandlerFactory extends HashMap<String,DocHandlerFacade>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSE_CATALOG_PROP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetUseCatalog()inthashCode()static DocHandlerFactorynewInstance(InputStream factoryConfig)Creates and configure an instance of DocHandlerFactorystatic DocHandlerFactorynewInstance(String factoryCatalogPath)Creates and configure an instance of DocHandlerFactorystatic DocHandlerFactorynewInstance(org.fugerit.java.core.cfg.xml.FactoryCatalog catalog)Creates and configure an instance of DocHandlerFactorystatic DocHandlerFacaderegister(String factoryCatalogPath)Creates and configure an instance of DocHandlerFacade with default catalog id.static DocHandlerFacaderegister(String factoryCatalogPath, String useCatalog)Creates and configure an instance of DocHandlerFacadestatic DocHandlerFacaderegister(Collection<org.fugerit.java.core.cfg.xml.FactoryType> col)Creates and configure an instance of DocHandlerFacadestatic DocHandlerFacaderegister(org.fugerit.java.core.cfg.xml.FactoryCatalog catalog)Creates and configure an instance of DocHandlerFacade with default catalog id.static DocHandlerFacaderegister(org.fugerit.java.core.cfg.xml.FactoryCatalog catalog, String useCatalog)Creates and configure an instance of DocHandlerFacade-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
toString
-
-
-
-
Field Detail
-
USE_CATALOG_PROP
public static final String USE_CATALOG_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap<String,DocHandlerFacade>- Overrides:
hashCodein classAbstractMap<String,DocHandlerFacade>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceMap<String,DocHandlerFacade>- Overrides:
equalsin classAbstractMap<String,DocHandlerFacade>
-
register
public static DocHandlerFacade register(String factoryCatalogPath)
Creates and configure an instance of DocHandlerFacade with default catalog id.
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
factoryCatalogPath- the factory catalog xml path- Returns:
- the configured facade
- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
register
public static DocHandlerFacade register(String factoryCatalogPath, String useCatalog)
Creates and configure an instance of DocHandlerFacade
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
factoryCatalogPath- the factory catalog xml pathuseCatalog- the catalog id to use- Returns:
- the configured facade
- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
register
public static DocHandlerFacade register(Collection<org.fugerit.java.core.cfg.xml.FactoryType> col)
Creates and configure an instance of DocHandlerFacade
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
col- the collection of factory type- Returns:
- the configured facade
- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
register
public static DocHandlerFacade register(org.fugerit.java.core.cfg.xml.FactoryCatalog catalog)
Creates and configure an instance of DocHandlerFacade with default catalog id.
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
catalog- the factory catalog- Returns:
- the doc handler facade
- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
register
public static DocHandlerFacade register(org.fugerit.java.core.cfg.xml.FactoryCatalog catalog, String useCatalog)
Creates and configure an instance of DocHandlerFacade
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
catalog- the factory cataloguseCatalog- the catalog id to use to create the facade- Returns:
- the doc handler facade
- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
newInstance
public static DocHandlerFactory newInstance(InputStream factoryConfig)
Creates and configure an instance of DocHandlerFactory
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
factoryConfig- a stream on xml configuration document- Returns:
- the configured DocHandlerFactory
- Throws:
org.fugerit.java.core.cfg.ConfigRuntimeException- in case of issues during loading- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
newInstance
public static DocHandlerFactory newInstance(String factoryCatalogPath)
Creates and configure an instance of DocHandlerFactory
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
factoryCatalogPath- the path to the factory catalog xml- Returns:
- the configured DocHandlerFactory
- Throws:
org.fugerit.java.core.cfg.ConfigRuntimeException- in case of issues during loading- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
newInstance
public static DocHandlerFactory newInstance(org.fugerit.java.core.cfg.xml.FactoryCatalog catalog)
Creates and configure an instance of DocHandlerFactory
NOTE: starting from version 8.4.X java.lang.Exception removed in favor of org.fugerit.java.core.cfg.ConfigRuntimeException.
- Parameters:
catalog- the factory catalog to use- Returns:
- the configured factory
- See Also:
- Define and throw a dedicated exception instead of using a generic one.
-
getUseCatalog
public String getUseCatalog()
-
-