public class ProxyConfiguration<T> extends Object
Constructor and Description |
---|
ProxyConfiguration() |
Modifier and Type | Method and Description |
---|---|
ProxyConfiguration<T> |
addAdditionalInterface(Class<?> additionalInterface)
Adds an additional interface the that proxy should implement
|
List<Class<?>> |
getAdditionalInterfaces() |
ClassLoader |
getClassLoader() |
ReflectionMetadataSource |
getMetadataSource() |
ProtectionDomain |
getProtectionDomain() |
String |
getProxyName() |
Class<T> |
getSuperClass() |
ProxyConfiguration<T> |
setClassLoader(ClassLoader classLoader)
Sets the class loader that the proxy should be defined in
|
ProxyConfiguration<T> |
setMetadataSource(ReflectionMetadataSource metadataSource) |
ProxyConfiguration<T> |
setProtectionDomain(ProtectionDomain protectionDomain) |
ProxyConfiguration<T> |
setProxyName(Package pkg,
String simpleName)
Sets the proxy name
|
ProxyConfiguration<T> |
setProxyName(String proxyName)
Sets the proxy name
|
ProxyConfiguration<T> |
setSuperClass(Class<T> superClass)
Sets the proxy superclass
|
public List<Class<?>> getAdditionalInterfaces()
public ProxyConfiguration<T> addAdditionalInterface(Class<?> additionalInterface)
additionalInterface
- The additional interface to addpublic ClassLoader getClassLoader()
public ProxyConfiguration<T> setClassLoader(ClassLoader classLoader)
classLoader
- The class loaderpublic ReflectionMetadataSource getMetadataSource()
public ProxyConfiguration<T> setMetadataSource(ReflectionMetadataSource metadataSource)
metadataSource
- The reflection metadata source used to generate the proxiespublic String getProxyName()
public ProxyConfiguration<T> setProxyName(String proxyName)
proxyName
- The fully qualified proxy namepublic ProxyConfiguration<T> setProxyName(Package pkg, String simpleName)
pkg
- The package to define the proxy insimpleName
- The simple class namepublic ProxyConfiguration<T> setSuperClass(Class<T> superClass)
superClass
- The super classpublic ProtectionDomain getProtectionDomain()
public ProxyConfiguration<T> setProtectionDomain(ProtectionDomain protectionDomain)
protectionDomain
- The protection domain for the proxyCopyright © 2012 JBoss by Red Hat. All Rights Reserved.