com.force.sdk.jpa
Class ForcePluginRegistry

java.lang.Object
  extended by com.force.sdk.jpa.ForcePluginRegistry
All Implemented Interfaces:
org.datanucleus.plugin.PluginRegistry

public class ForcePluginRegistry
extends Object
implements org.datanucleus.plugin.PluginRegistry

This is a bit of a hack just to give us the ability to swap out the MetaDataManager, since DataNucleus doesn't provide us with an easy way of specifying our own.

Author:
Jill Wetzler

Constructor Summary
ForcePluginRegistry(org.datanucleus.plugin.PluginRegistry pluginRegistry)
          Create a ForcePluginRegistry that can delegate to the existing DataNucleus plugin registry.
 
Method Summary
 Object createExecutableExtension(org.datanucleus.plugin.ConfigurationElement confElm, String name, Class[] argsClass, Object[] args)
           
 org.datanucleus.plugin.Bundle[] getBundles()
           
 org.datanucleus.plugin.ExtensionPoint getExtensionPoint(String id)
           
 org.datanucleus.plugin.ExtensionPoint[] getExtensionPoints()
           
 Class loadClass(String pluginId, String className)
           
 void registerExtensionPoints()
           
 void registerExtensions()
           
 void resolveConstraints()
           
 URL resolveURLAsFileURL(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForcePluginRegistry

public ForcePluginRegistry(org.datanucleus.plugin.PluginRegistry pluginRegistry)
Create a ForcePluginRegistry that can delegate to the existing DataNucleus plugin registry.

Parameters:
pluginRegistry - the existing plugin registry
Method Detail

getExtensionPoints

public org.datanucleus.plugin.ExtensionPoint[] getExtensionPoints()
Specified by:
getExtensionPoints in interface org.datanucleus.plugin.PluginRegistry
See Also:
{@inheritDoc}

registerExtensionPoints

public void registerExtensionPoints()
Specified by:
registerExtensionPoints in interface org.datanucleus.plugin.PluginRegistry
See Also:
{@inheritDoc}

registerExtensions

public void registerExtensions()
Specified by:
registerExtensions in interface org.datanucleus.plugin.PluginRegistry
See Also:
{@inheritDoc}

createExecutableExtension

public Object createExecutableExtension(org.datanucleus.plugin.ConfigurationElement confElm,
                                        String name,
                                        Class[] argsClass,
                                        Object[] args)
                                 throws ClassNotFoundException,
                                        SecurityException,
                                        NoSuchMethodException,
                                        IllegalArgumentException,
                                        InstantiationException,
                                        IllegalAccessException,
                                        InvocationTargetException
Specified by:
createExecutableExtension in interface org.datanucleus.plugin.PluginRegistry
Throws:
ClassNotFoundException
SecurityException
NoSuchMethodException
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException
See Also:
{@inheritDoc}

loadClass

public Class loadClass(String pluginId,
                       String className)
                throws ClassNotFoundException
Specified by:
loadClass in interface org.datanucleus.plugin.PluginRegistry
Throws:
ClassNotFoundException
See Also:
{@inheritDoc}

resolveURLAsFileURL

public URL resolveURLAsFileURL(URL url)
                        throws IOException
Specified by:
resolveURLAsFileURL in interface org.datanucleus.plugin.PluginRegistry
Throws:
IOException
See Also:
{@inheritDoc}

resolveConstraints

public void resolveConstraints()
Specified by:
resolveConstraints in interface org.datanucleus.plugin.PluginRegistry
See Also:
{@inheritDoc}

getBundles

public org.datanucleus.plugin.Bundle[] getBundles()
Specified by:
getBundles in interface org.datanucleus.plugin.PluginRegistry
See Also:
{@inheritDoc}

getExtensionPoint

public org.datanucleus.plugin.ExtensionPoint getExtensionPoint(String id)
Specified by:
getExtensionPoint in interface org.datanucleus.plugin.PluginRegistry
See Also:
{@inheritDoc}


Copyright © 2011. All Rights Reserved.