Fabric3 JPA/Hibernate Extension

org.fabric3.jpa.runtime
Class PersistenceContextWireAttacher

java.lang.Object
  extended by org.fabric3.jpa.runtime.PersistenceContextWireAttacher
All Implemented Interfaces:
org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceContextTargetDefinition>

public class PersistenceContextWireAttacher
extends Object
implements org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceContextTargetDefinition>

Attaches the target side of entity manager factories.

Version:
$Rev: 11107 $ $Date: 2012-06-30 22:18:51 +0000 (Sat, 30 Jun 2012) $

Constructor Summary
PersistenceContextWireAttacher(EntityManagerService emService, TransactionManager tm, EntityManagerFactoryResolver emfResolver, org.fabric3.spi.classloader.ClassLoaderRegistry registry)
          Constructor.
 
Method Summary
 void attach(org.fabric3.spi.model.physical.PhysicalSourceDefinition source, PersistenceContextTargetDefinition target, org.fabric3.spi.wire.Wire wire)
           
 org.fabric3.spi.objectfactory.ObjectFactory<?> createObjectFactory(PersistenceContextTargetDefinition definition)
           
 void detach(org.fabric3.spi.model.physical.PhysicalSourceDefinition source, PersistenceContextTargetDefinition target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceContextWireAttacher

public PersistenceContextWireAttacher(EntityManagerService emService,
                                      TransactionManager tm,
                                      EntityManagerFactoryResolver emfResolver,
                                      org.fabric3.spi.classloader.ClassLoaderRegistry registry)
Constructor.

Parameters:
emService - the service for creating EntityManagers
tm - the transaction manager
emfResolver - the EMF builder
registry - the classloader registry
Method Detail

createObjectFactory

public org.fabric3.spi.objectfactory.ObjectFactory<?> createObjectFactory(PersistenceContextTargetDefinition definition)
                                                                   throws org.fabric3.spi.builder.WiringException
Specified by:
createObjectFactory in interface org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceContextTargetDefinition>
Throws:
org.fabric3.spi.builder.WiringException

attach

public void attach(org.fabric3.spi.model.physical.PhysicalSourceDefinition source,
                   PersistenceContextTargetDefinition target,
                   org.fabric3.spi.wire.Wire wire)
            throws org.fabric3.spi.builder.WiringException
Specified by:
attach in interface org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceContextTargetDefinition>
Throws:
org.fabric3.spi.builder.WiringException

detach

public void detach(org.fabric3.spi.model.physical.PhysicalSourceDefinition source,
                   PersistenceContextTargetDefinition target)
            throws org.fabric3.spi.builder.WiringException
Specified by:
detach in interface org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceContextTargetDefinition>
Throws:
org.fabric3.spi.builder.WiringException

Fabric3 JPA/Hibernate Extension

Copyright © 2007-2012 Metaform Systems.