|
ShrinkWrap Resolver API 2.0.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.api.ConfiguredResolverSystemFactory<RESOLVERSYSTEMTYPE,CONFIGURABLERESOLVERSYSTEMTYPE>
RESOLVERSYSTEMTYPE - Configured view type of the ResolverSystemCONFIGURABLERESOLVERSYSTEMTYPE - Configurable view type of the ResolverSystempublic class ConfiguredResolverSystemFactory<RESOLVERSYSTEMTYPE extends ResolverSystem,CONFIGURABLERESOLVERSYSTEMTYPE extends ConfigurableResolverSystem<RESOLVERSYSTEMTYPE>>
Factory to create configured ResolverSystem instances
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 specified
public 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 specified| Method Detail |
|---|
public RESOLVERSYSTEMTYPE fromFile(File file)
throws IllegalArgumentException,
InvalidConfigurationFileException
ResolverSystem from the specified file
file -
IllegalArgumentException - If the file is not specified, is a directory, or does not exist
InvalidConfigurationFileException - If the file is not in correct format
public RESOLVERSYSTEMTYPE fromFile(String pathToFile)
throws IllegalArgumentException,
InvalidConfigurationFileException
ResolverSystem from the file at the specified path
pathToFile -
IllegalArgumentException - If the file is not specified, is a directory, or does not exist
InvalidConfigurationFileException - If the file is not in correct format
public 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 found
InvalidConfigurationFileException - If the file is not in correct format
public 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 found
InvalidConfigurationFileException - If the file is not in correct formatprotected CONFIGURABLERESOLVERSYSTEMTYPE create()
|
ShrinkWrap Resolver API 2.0.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||