public class TypeFactory extends java.lang.Object implements AddLoaderListener
Modifier and Type | Method and Description |
---|---|
void |
addLoader(EnvironmentClassLoader loader)
Called with the loader config changes.
|
static TypeFactory |
create() |
static <T> XmlBeanType<T> |
getCustomBeanType(java.lang.Class<T> type)
Returns the appropriate strategy.
|
java.lang.Class<?> |
getDriverClassByScheme(java.lang.Class<?> api,
java.lang.String scheme)
Returns a driver by the scheme
|
java.lang.Class<?> |
getDriverClassByUrl(java.lang.Class<?> api,
java.lang.String url)
Returns a driver by the url
|
void |
getDriverSchemes(java.util.ArrayList<java.lang.String> schemes,
java.lang.String apiType)
Returns a list of schemes supported by the api type.
|
java.lang.String |
getDriverType(java.lang.String apiType,
java.lang.String scheme)
Returns the classname of the given driver.
|
Attribute |
getEnvironmentAttribute(QName name)
Returns an environment type.
|
ConfigType<?> |
getEnvironmentType(QName name)
Returns an environment type.
|
protected ConfigType<?> |
getEnvironmentTypeRec(QName name)
Returns an environment type.
|
static TypeFactory |
getFactory() |
static TypeFactory |
getFactory(java.lang.ClassLoader loader) |
Attribute |
getListAttribute(QName name)
Returns an environment type.
|
Attribute |
getSetAttribute(QName name)
Returns an environment type.
|
static <T> ConfigType<T> |
getType(java.lang.Class<T> type)
Returns the appropriate strategy.
|
static ConfigType<?> |
getType(java.lang.Object bean)
Returns the appropriate strategy.
|
static ConfigType<?> |
getType(java.lang.reflect.Type type)
Returns the appropriate strategy.
|
ContainerProgram |
getUrlProgram(java.lang.String url) |
protected boolean |
hasConfig(java.net.URL url) |
protected boolean |
hasDriver(java.net.URL url) |
boolean |
isEnhancer() |
static java.lang.Class<?> |
loadClass(QName qName)
Returns the appropriate strategy.
|
static java.lang.Class<?> |
loadClass(java.lang.String pkg,
java.lang.String name)
Returns the appropriate strategy.
|
java.lang.String |
toString() |
public static ConfigType<?> getType(java.lang.Object bean)
public static <T> ConfigType<T> getType(java.lang.Class<T> type)
public static ConfigType<?> getType(java.lang.reflect.Type type)
public static java.lang.Class<?> loadClass(QName qName)
public static java.lang.Class<?> loadClass(java.lang.String pkg, java.lang.String name)
public static TypeFactory create()
public static TypeFactory getFactory()
public static TypeFactory getFactory(java.lang.ClassLoader loader)
public ConfigType<?> getEnvironmentType(QName name)
protected ConfigType<?> getEnvironmentTypeRec(QName name)
public Attribute getEnvironmentAttribute(QName name)
public static <T> XmlBeanType<T> getCustomBeanType(java.lang.Class<T> type)
protected boolean hasConfig(java.net.URL url)
public java.lang.Class<?> getDriverClassByUrl(java.lang.Class<?> api, java.lang.String url)
public java.lang.Class<?> getDriverClassByScheme(java.lang.Class<?> api, java.lang.String scheme)
public ContainerProgram getUrlProgram(java.lang.String url)
public java.lang.String getDriverType(java.lang.String apiType, java.lang.String scheme)
apiType
- the driver APIscheme
- the configuration schemepublic void getDriverSchemes(java.util.ArrayList<java.lang.String> schemes, java.lang.String apiType)
schemes
- the return list of schemes schemeapiType
- the driver APIprotected boolean hasDriver(java.net.URL url)
public boolean isEnhancer()
isEnhancer
in interface AddLoaderListener
public void addLoader(EnvironmentClassLoader loader)
addLoader
in interface AddLoaderListener
public java.lang.String toString()
toString
in class java.lang.Object