Package org.n52.io.handler
Class DefaultIoFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>>
- java.lang.Object
-
- org.n52.io.handler.ConfigTypedFactory<IoHandlerFactory<O,V>>
-
- org.n52.io.handler.DefaultIoFactory<O,V>
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DefaultIoFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>> extends ConfigTypedFactory<IoHandlerFactory<O,V>>
-
-
Field Summary
-
Fields inherited from class org.n52.io.handler.ConfigTypedFactory
cache, mappings
-
-
Constructor Summary
Constructors Constructor Description DefaultIoFactory()DefaultIoFactory(File configFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>>create()static DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>>create(File configFile)protected StringgetFallbackConfigResource()Tries to load a default config file which can be found by the target type's classloader.protected Class<?>getTargetType()protected IoHandlerFactory<O,V>initInstance(IoHandlerFactory<O,V> instance)-
Methods inherited from class org.n52.io.handler.ConfigTypedFactory
create, getCacheEntry, getDefaultConfigFile, getKnownTypes, hasCacheEntry, isKnown, setApplicationContext
-
-
-
-
Constructor Detail
-
DefaultIoFactory
public DefaultIoFactory()
-
DefaultIoFactory
public DefaultIoFactory(File configFile)
-
-
Method Detail
-
create
public static DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>> create()
-
create
public static DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>> create(File configFile)
-
getFallbackConfigResource
protected String getFallbackConfigResource()
Description copied from class:ConfigTypedFactoryTries to load a default config file which can be found by the target type's classloader.- Specified by:
getFallbackConfigResourcein classConfigTypedFactory<IoHandlerFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>>>- Returns:
- a relative path to the config within the jar
- See Also:
ConfigTypedFactory.getTargetType()
-
initInstance
protected IoHandlerFactory<O,V> initInstance(IoHandlerFactory<O,V> instance)
- Overrides:
initInstancein classConfigTypedFactory<IoHandlerFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>>>
-
getTargetType
protected Class<?> getTargetType()
- Specified by:
getTargetTypein classConfigTypedFactory<IoHandlerFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>>>- Returns:
- the type this factory creates
-
-