Package org.jboss.invocation.proxy
Class ProxyConfiguration<T>
- java.lang.Object
-
- org.jboss.invocation.proxy.ProxyConfiguration<T>
-
public class ProxyConfiguration<T> extends Object
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ProxyConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyConfiguration<T>addAdditionalInterface(Class<?> additionalInterface)Adds an additional interface the that proxy should implementList<Class<?>>getAdditionalInterfaces()org.jboss.classfilewriter.ClassFactorygetClassFactory()ClassLoadergetClassLoader()ReflectionMetadataSourcegetMetadataSource()ProtectionDomaingetProtectionDomain()StringgetProxyName()Class<T>getSuperClass()ProxyConfiguration<T>setClassFactory(org.jboss.classfilewriter.ClassFactory classFactory)Sets the class factory that the proxy should be defined viaProxyConfiguration<T>setClassLoader(ClassLoader classLoader)Sets the class loader that the proxy should be defined inProxyConfiguration<T>setMetadataSource(ReflectionMetadataSource metadataSource)ProxyConfiguration<T>setProtectionDomain(ProtectionDomain protectionDomain)ProxyConfiguration<T>setProxyName(Package pkg, String simpleName)Sets the proxy nameProxyConfiguration<T>setProxyName(String proxyName)Sets the proxy nameProxyConfiguration<T>setSuperClass(Class<T> superClass)Sets the proxy superclass
-
-
-
Method Detail
-
getAdditionalInterfaces
public List<Class<?>> getAdditionalInterfaces()
- Returns:
- Any additional interfaces that the proxy should implement
-
addAdditionalInterface
public ProxyConfiguration<T> addAdditionalInterface(Class<?> additionalInterface)
Adds an additional interface the that proxy should implement- Parameters:
additionalInterface- The additional interface to add- Returns:
- The builder
-
getClassFactory
public org.jboss.classfilewriter.ClassFactory getClassFactory()
- Returns:
- The class factory that the proxy should be defined via
-
setClassFactory
public ProxyConfiguration<T> setClassFactory(org.jboss.classfilewriter.ClassFactory classFactory)
Sets the class factory that the proxy should be defined via- Parameters:
classFactory- The class factory- Returns:
- The builder
-
getClassLoader
public ClassLoader getClassLoader()
- Returns:
- The class loader that the proxy should be defined in
-
setClassLoader
public ProxyConfiguration<T> setClassLoader(ClassLoader classLoader)
Sets the class loader that the proxy should be defined in- Parameters:
classLoader- The class loader- Returns:
- The builder
-
getMetadataSource
public ReflectionMetadataSource getMetadataSource()
- Returns:
- The reflection Metadata source used to generate the proxies
-
setMetadataSource
public ProxyConfiguration<T> setMetadataSource(ReflectionMetadataSource metadataSource)
- Parameters:
metadataSource- The reflection metadata source used to generate the proxies- Returns:
- The builder
-
getProxyName
public String getProxyName()
- Returns:
- The proxy Name
-
setProxyName
public ProxyConfiguration<T> setProxyName(String proxyName)
Sets the proxy name- Parameters:
proxyName- The fully qualified proxy name- Returns:
- the builder
-
setProxyName
public ProxyConfiguration<T> setProxyName(Package pkg, String simpleName)
Sets the proxy name- Parameters:
pkg- The package to define the proxy insimpleName- The simple class name- Returns:
- the builder
-
setSuperClass
public ProxyConfiguration<T> setSuperClass(Class<T> superClass)
Sets the proxy superclass- Parameters:
superClass- The super class- Returns:
- The builder
-
getProtectionDomain
public ProtectionDomain getProtectionDomain()
- Returns:
- The proxies ProtectionDomain
-
setProtectionDomain
public ProxyConfiguration<T> setProtectionDomain(ProtectionDomain protectionDomain)
- Parameters:
protectionDomain- The protection domain for the proxy- Returns:
- The builder
-
-