org.fabric3.jpa.runtime
Class PersistenceUnitWireAttacher
java.lang.Object
org.fabric3.jpa.runtime.PersistenceUnitWireAttacher
- All Implemented Interfaces:
- org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceUnitTargetDefinition>
public class PersistenceUnitWireAttacher
- extends Object
- implements org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceUnitTargetDefinition>
Attaches the target side of entity manager factories.
- Version:
- $Rev: 11107 $ $Date: 2012-06-30 22:18:51 +0000 (Sat, 30 Jun 2012) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceUnitWireAttacher
public PersistenceUnitWireAttacher(EntityManagerFactoryResolver emfResolver,
org.fabric3.spi.classloader.ClassLoaderRegistry registry)
- Constructor.
- Parameters:
emfResolver - EntityManagerFactory builder.registry - the classloader registry
attach
public void attach(org.fabric3.spi.model.physical.PhysicalSourceDefinition source,
PersistenceUnitTargetDefinition target,
org.fabric3.spi.wire.Wire wire)
throws org.fabric3.spi.builder.WiringException
- Specified by:
attach in interface org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceUnitTargetDefinition>
- Throws:
org.fabric3.spi.builder.WiringException
detach
public void detach(org.fabric3.spi.model.physical.PhysicalSourceDefinition source,
PersistenceUnitTargetDefinition target)
throws org.fabric3.spi.builder.WiringException
- Specified by:
detach in interface org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceUnitTargetDefinition>
- Throws:
org.fabric3.spi.builder.WiringException
createObjectFactory
public org.fabric3.spi.objectfactory.ObjectFactory<?> createObjectFactory(PersistenceUnitTargetDefinition target)
throws org.fabric3.spi.builder.WiringException
- Specified by:
createObjectFactory in interface org.fabric3.spi.builder.component.TargetWireAttacher<PersistenceUnitTargetDefinition>
- Throws:
org.fabric3.spi.builder.WiringException
Copyright © 2007-2012 Metaform Systems.