Package javassist.util.proxy

Examples of javassist.util.proxy.ProxyFactory.create()


    ProxyFactory proxyFactory = new ProxyFactory();
    proxyFactory.setSuperclass( propertyContextImplType );
    proxyFactory.setFilter( new EntityOrPropertyMethodFilter() );

    try {
      return (P) proxyFactory.create(
          new Class<?>[] { ConfigurationContext.class },
          new Object[] { this },
          new EntityOrPropertyMethodHandler( entityContextImplType, propertyContextImplType ) );
    }
    catch (Exception e) {
View Full Code Here


    proxyFactory.setSuperclass( factoryClass );
    proxyFactory.setInterfaces( new Class[]{ProviderFactory.class} );

    try
      {
      return (ProviderFactory) proxyFactory.create( new Class[]{}, new Object[]{}, getProviderFactoryMethodHandler() );
      }
    catch( Exception exception )
      {
      throw new RuntimeException( "failed to create proxy", exception );
      }
View Full Code Here

    if( interfaces.length != 0 )
      proxyFactory.setInterfaces( interfaces );
    try
      {
      return (T) proxyFactory.create( new Class[]{}, new Object[]{}, getClassLoaderMethodHandler( parentTap ) );
      }
    catch( Exception exception )
      {
      throw new RuntimeException( "failed to create proxy", exception );
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.