Invocation API 1.1.0.Final

org.jboss.invocation.proxy
Class ProxyConfiguration<T>

java.lang.Object
  extended by org.jboss.invocation.proxy.ProxyConfiguration<T>

public class ProxyConfiguration<T>
extends Object

Author:
Stuart Douglas

Constructor Summary
ProxyConfiguration()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyConfiguration

public ProxyConfiguration()
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

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 in
simpleName - The simple class name
Returns:
the builder

getSuperClass

public Class<T> getSuperClass()
Returns:
The proxy super class

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

Invocation API 1.1.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.