Package org.jpox.plugin

Examples of org.jpox.plugin.PluginManager


        // Use JDOClassLoaderResolver here since we need the plugin mechanism before being able to create our specified CLR
        ClassLoaderResolver clr = new JDOClassLoaderResolver(this.getClass().getClassLoader());
        clr.registerUserClassLoader((ClassLoader)persistenceConfig.getProperty("org.jpox.primaryClassLoader"));

        // Instantiate manager for the plugins
        this.pluginManager = new PluginManager(this.persistenceConfig, clr);
        this.pluginManager.registerExtensionPoints();
        this.pluginManager.registerExtensions();
        this.pluginManager.resolveConstraints();

        // Load up any default properties from the plugins
View Full Code Here


     * @throws SQLException
     */
    public void testDatabaseProductNames() throws SQLException
    {
        OMFContext ctxt = new OMFContext(new PersistenceConfiguration(){});
        PluginManager pluginMgr = ctxt.getPluginManager();
        ClassLoaderResolver clr = ctxt.getClassLoaderResolver(null);

        RDBMSAdapterFactory factory = RDBMSAdapterFactory.getInstance();

        assertEquals("org.jpox.store.rdbms.adapter.DerbyAdapter", factory.getAdapterClass(pluginMgr, null, "Apache Derby", clr).getName());
View Full Code Here

TOP

Related Classes of org.jpox.plugin.PluginManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.