RESOLVERSYSTEMTYPE
- Configured view type of the ResolverSystem
CONFIGURABLERESOLVERSYSTEMTYPE
- Configurable view type of the ResolverSystem
public class ConfiguredResolverSystemFactory<RESOLVERSYSTEMTYPE extends ResolverSystem,CONFIGURABLERESOLVERSYSTEMTYPE extends ConfigurableResolverSystem<RESOLVERSYSTEMTYPE>> extends Object
ResolverSystem
instancesConstructor and Description |
---|
ConfiguredResolverSystemFactory(Class<CONFIGURABLERESOLVERSYSTEMTYPE> type)
Creates a new instance to configure a new
ConfigurableResolverSystem of the specified type, using the
current Thread.getContextClassLoader() for creation of the ConfigurableResolverSystem |
ConfiguredResolverSystemFactory(Class<CONFIGURABLERESOLVERSYSTEMTYPE> type,
ClassLoader clForCreation)
Creates a new instance to configure a new
ConfigurableResolverSystem of the specified type, using the
Thread.getContextClassLoader() of the specified ClassLoader for creation of the
ConfigurableResolverSystem |
Modifier and Type | Method and Description |
---|---|
protected CONFIGURABLERESOLVERSYSTEMTYPE |
create() |
RESOLVERSYSTEMTYPE |
fromClassloaderResource(String path)
Configures this
ResolverSystem from the result of ClassLoader.getResource(String) using the
current Thread.getContextClassLoader() |
RESOLVERSYSTEMTYPE |
fromClassloaderResource(String path,
ClassLoader loader)
Configures this
ResolverSystem from the result of ClassLoader.getResource(String) using the
specified ClassLoader |
RESOLVERSYSTEMTYPE |
fromFile(File file)
Configures this
ResolverSystem from the specified file |
RESOLVERSYSTEMTYPE |
fromFile(String pathToFile)
Configures this
ResolverSystem from the file at the specified path |
public ConfiguredResolverSystemFactory(Class<CONFIGURABLERESOLVERSYSTEMTYPE> type) throws IllegalArgumentException
ConfigurableResolverSystem
of the specified type, using the
current Thread.getContextClassLoader()
for creation of the ConfigurableResolverSystem
type
- IllegalArgumentException
- If the type is not specifiedpublic ConfiguredResolverSystemFactory(Class<CONFIGURABLERESOLVERSYSTEMTYPE> type, ClassLoader clForCreation) throws IllegalArgumentException
ConfigurableResolverSystem
of the specified type, using the
Thread.getContextClassLoader()
of the specified ClassLoader
for creation of the
ConfigurableResolverSystem
type
- clForCreation
- IllegalArgumentException
- If either argument is not specifiedpublic RESOLVERSYSTEMTYPE fromFile(File file) throws IllegalArgumentException, InvalidConfigurationFileException
ResolverSystem
from the specified filefile
- IllegalArgumentException
- If the file is not specified, is a directory, or does not existInvalidConfigurationFileException
- If the file is not in correct formatpublic RESOLVERSYSTEMTYPE fromFile(String pathToFile) throws IllegalArgumentException, InvalidConfigurationFileException
ResolverSystem
from the file at the specified pathpathToFile
- IllegalArgumentException
- If the file is not specified, is a directory, or does not existInvalidConfigurationFileException
- If the file is not in correct formatpublic RESOLVERSYSTEMTYPE fromClassloaderResource(String path) throws IllegalArgumentException, InvalidConfigurationFileException
ResolverSystem
from the result of ClassLoader.getResource(String)
using the
current Thread.getContextClassLoader()
path
- IllegalArgumentException
- If the path is not specified or can not be foundInvalidConfigurationFileException
- If the file is not in correct formatpublic RESOLVERSYSTEMTYPE fromClassloaderResource(String path, ClassLoader loader) throws IllegalArgumentException, InvalidConfigurationFileException
ResolverSystem
from the result of ClassLoader.getResource(String)
using the
specified ClassLoader
path
- IllegalArgumentException
- If the either argument is not specified or if the path can not be foundInvalidConfigurationFileException
- If the file is not in correct formatprotected CONFIGURABLERESOLVERSYSTEMTYPE create()
Copyright © 2013 JBoss by Red Hat. All rights reserved.