public class Resolvers extends Object
ResolverSystem
) into either use(Class)
or
use(Class, ClassLoader)
.Constructor and Description |
---|
Resolvers() |
Modifier and Type | Method and Description |
---|---|
static <RESOLVERSYSTEMTYPE extends ResolverSystem,CONFIGURABLERESOLVERSYSTEMTYPE extends ConfigurableResolverSystem<RESOLVERSYSTEMTYPE,CONFIGURABLERESOLVERSYSTEMTYPE>> |
configure(Class<CONFIGURABLERESOLVERSYSTEMTYPE> clazz)
Returns a factory to create configured
ResolverSystem instances of the specified type. |
static <RESOLVERSYSTEMTYPE extends ResolverSystem,CONFIGURABLERESOLVERSYSTEMTYPE extends ConfigurableResolverSystem<RESOLVERSYSTEMTYPE,CONFIGURABLERESOLVERSYSTEMTYPE>> |
configure(Class<CONFIGURABLERESOLVERSYSTEMTYPE> clazz,
ClassLoader cl)
Returns a factory to create configured
ResolverSystem instances of the specified type. |
static <RESOLVERSYSTEMTYPE extends ResolverSystem> |
use(Class<RESOLVERSYSTEMTYPE> clazz)
Creates and returns a new instance of the specified view type.
|
static <RESOLVERSYSTEMTYPE extends ResolverSystem> |
use(Class<RESOLVERSYSTEMTYPE> clazz,
ClassLoader cl)
Creates and returns a new instance of the specified view type.
|
public static <RESOLVERSYSTEMTYPE extends ResolverSystem,CONFIGURABLERESOLVERSYSTEMTYPE extends ConfigurableResolverSystem<RESOLVERSYSTEMTYPE,CONFIGURABLERESOLVERSYSTEMTYPE>> CONFIGURABLERESOLVERSYSTEMTYPE configure(Class<CONFIGURABLERESOLVERSYSTEMTYPE> clazz) throws IllegalArgumentException
ResolverSystem
instances of the specified type. New instances will
be created using the current Thread.getContextClassLoader()
.RESOLVERSYSTEMTYPE
- The ResolverSystem
type.CONFIGURABLERESOLVERSYSTEMTYPE
- The ConfigurableResolverSystem
type.clazz
- The typeResolverSystem
instances of the specified type.IllegalArgumentException
- If the type is not specifiedpublic static <RESOLVERSYSTEMTYPE extends ResolverSystem,CONFIGURABLERESOLVERSYSTEMTYPE extends ConfigurableResolverSystem<RESOLVERSYSTEMTYPE,CONFIGURABLERESOLVERSYSTEMTYPE>> CONFIGURABLERESOLVERSYSTEMTYPE configure(Class<CONFIGURABLERESOLVERSYSTEMTYPE> clazz, ClassLoader cl) throws IllegalArgumentException
ResolverSystem
instances of the specified type. New instances will
be created using the specified ClassLoader
.RESOLVERSYSTEMTYPE
- The ResolverSystem
type.CONFIGURABLERESOLVERSYSTEMTYPE
- The ConfigurableResolverSystem
type.clazz
- The typecl
- The ClassLoader
ResolverSystem
instances of the specified type. The factory will
be created by using the specified ClassLoader
.IllegalArgumentException
- If the type or ClassLoader
is not specifiedpublic static <RESOLVERSYSTEMTYPE extends ResolverSystem> RESOLVERSYSTEMTYPE use(Class<RESOLVERSYSTEMTYPE> clazz) throws IllegalArgumentException
RESOLVERSYSTEMTYPE
- The ResolverSystem
type.clazz
- The view typeIllegalArgumentException
- If the type is not specifiedpublic static <RESOLVERSYSTEMTYPE extends ResolverSystem> RESOLVERSYSTEMTYPE use(Class<RESOLVERSYSTEMTYPE> clazz, ClassLoader cl) throws IllegalArgumentException
ClassLoader
.RESOLVERSYSTEMTYPE
- The ResolverSystem
type.clazz
- The view type.cl
- The ClassLoader
.ClassLoader
.IllegalArgumentException
- If either argument is not suppliedCopyright © 2017 JBoss by Red Hat. All rights reserved.