Package org.springframework.orm.jpa

Examples of org.springframework.orm.jpa.JpaInterceptor


    // start the rendering thread

    final IWorker targetWorker = new Worker(this.channel, this.rd);
   
    // Obtain JcrInterceptor bean
    final JpaInterceptor jpaInterceptor = JpaInterceptorLocator.getJpaInterceptor();

    // Proxy worker so that Jpa EntityManager will be properly handled
    final ProxyFactoryBean pfb = new ProxyFactoryBean();
    pfb.setTarget(targetWorker);
    pfb.setInterfaces(targetWorker.getClass().getInterfaces());
View Full Code Here


        publisher.setOverride(true);
        return wrapChannelPublisher(publisher);
    }
   
    private static IChannelPublisher wrapChannelPublisher(IChannelPublisher channelPublisher) {
        final JpaInterceptor jpaInterceptor = JpaInterceptorLocator.getJpaInterceptor();

        // Proxy IChannelPublisher so that Jpa EntityManager will be properly handled
        final ProxyFactoryBean pfb = new ProxyFactoryBean();
        pfb.setTarget(channelPublisher);
        pfb.setInterfaces(channelPublisher.getClass().getInterfaces());
View Full Code Here

TOP

Related Classes of org.springframework.orm.jpa.JpaInterceptor

Copyright © 2018 www.massapicom. 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.