Class ProxyConfiguration<T>


  • public class ProxyConfiguration<T>
    extends Object
    Author:
    Stuart Douglas
    • 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
      • 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 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