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 -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>> create()static DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>> protected StringTries to load a default config file which can be found by the target type's classloader.protected Class<?>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 Details
-
DefaultIoFactory
public DefaultIoFactory() -
DefaultIoFactory
-
-
Method Details
-
create
-
create
public static DefaultIoFactory<DatasetOutput<AbstractValue<?>>,AbstractValue<?>> create(File configFile) -
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:
-
initInstance
- Overrides:
initInstancein classConfigTypedFactory<IoHandlerFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>>>
-
getTargetType
- Specified by:
getTargetTypein classConfigTypedFactory<IoHandlerFactory<O extends DatasetOutput<V>,V extends AbstractValue<?>>> - Returns:
- the type this factory creates
-