Fabric3 JPA/Hibernate Extension

org.fabric3.jpa.contribution
Class HibernateContributionListener

java.lang.Object
  extended by org.fabric3.jpa.contribution.HibernateContributionListener
All Implemented Interfaces:
org.fabric3.spi.contribution.ContributionServiceListener

public class HibernateContributionListener
extends Object
implements org.fabric3.spi.contribution.ContributionServiceListener

Adds an implicit import of the Hibernate contribution extension into any contribution using JPA on a runtime configured to use Hibernate. This is necessary as Hibernate's use of CGLIB for generating proxies requires that Hibernate classes (specifically, HibernateDelegate) be visible from the classloader that loaded a particular entity (i.e. the application classloader). If a Hibernate is explicitly imported in a contribution manifest (sca-contribution.xml), it is used instead.

Version:
$Rev: 11083 $ $Date: 2012-06-21 10:38:50 +0000 (Thu, 21 Jun 2012) $

Constructor Summary
HibernateContributionListener()
           
 
Method Summary
 void onInstall(org.fabric3.spi.contribution.Contribution contribution)
           
 void onProcessManifest(org.fabric3.spi.contribution.Contribution contribution)
           
 void onRemove(org.fabric3.spi.contribution.Contribution contribution)
           
 void onStore(org.fabric3.spi.contribution.Contribution contribution)
           
 void onUninstall(org.fabric3.spi.contribution.Contribution contribution)
           
 void onUpdate(org.fabric3.spi.contribution.Contribution contribution)
           
 void setNoImplicitImport(boolean noImplicitImport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateContributionListener

public HibernateContributionListener()
Method Detail

setNoImplicitImport

public void setNoImplicitImport(boolean noImplicitImport)

onProcessManifest

public void onProcessManifest(org.fabric3.spi.contribution.Contribution contribution)
Specified by:
onProcessManifest in interface org.fabric3.spi.contribution.ContributionServiceListener

onStore

public void onStore(org.fabric3.spi.contribution.Contribution contribution)
Specified by:
onStore in interface org.fabric3.spi.contribution.ContributionServiceListener

onInstall

public void onInstall(org.fabric3.spi.contribution.Contribution contribution)
Specified by:
onInstall in interface org.fabric3.spi.contribution.ContributionServiceListener

onUpdate

public void onUpdate(org.fabric3.spi.contribution.Contribution contribution)
Specified by:
onUpdate in interface org.fabric3.spi.contribution.ContributionServiceListener

onUninstall

public void onUninstall(org.fabric3.spi.contribution.Contribution contribution)
Specified by:
onUninstall in interface org.fabric3.spi.contribution.ContributionServiceListener

onRemove

public void onRemove(org.fabric3.spi.contribution.Contribution contribution)
Specified by:
onRemove in interface org.fabric3.spi.contribution.ContributionServiceListener

Fabric3 JPA/Hibernate Extension

Copyright © 2007-2012 Metaform Systems.