org.fabric3.jpa.override
Class OverrideRegistryImpl
java.lang.Object
org.fabric3.jpa.override.OverrideRegistryImpl
- All Implemented Interfaces:
- OverrideRegistry, org.fabric3.spi.contribution.ContributionServiceListener
public class OverrideRegistryImpl
- extends Object
- implements OverrideRegistry, org.fabric3.spi.contribution.ContributionServiceListener
- Version:
- $Rev: 9763 $ $Date: 2011-01-03 01:48:06 +0100 (Mon, 03 Jan 2011) $
|
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 |
register(URI contributionURI,
PersistenceOverrides overrides)
Registers a set of persistence overrides contained by a given contribution. |
PersistenceOverrides |
resolve(String unitName)
Resolves the overrides for the persistence context or null if none are registered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverrideRegistryImpl
public OverrideRegistryImpl()
register
public void register(URI contributionURI,
PersistenceOverrides overrides)
throws DuplicateOverridesException
- Description copied from interface:
OverrideRegistry
- Registers a set of persistence overrides contained by a given contribution. The overrides will be held until the contribution is uninstalled.
- Specified by:
register in interface OverrideRegistry
- Parameters:
contributionURI - the contribution URIoverrides - the overrides
- Throws:
DuplicateOverridesException - if a set of overrides for the persistence context are already registered
resolve
public PersistenceOverrides resolve(String unitName)
- Description copied from interface:
OverrideRegistry
- Resolves the overrides for the persistence context or null if none are registered.
- Specified by:
resolve in interface OverrideRegistry
- Parameters:
unitName - the persistence context name
- Returns:
- the overrides for the persistence context or null if none are registered
onUninstall
public void onUninstall(org.fabric3.spi.contribution.Contribution contribution)
- Specified by:
onUninstall 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
onProcessManifest
public void onProcessManifest(org.fabric3.spi.contribution.Contribution contribution)
- Specified by:
onProcessManifest 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
onRemove
public void onRemove(org.fabric3.spi.contribution.Contribution contribution)
- Specified by:
onRemove in interface org.fabric3.spi.contribution.ContributionServiceListener
Copyright © 2007-2012 Metaform Systems.