Examples of DcrPlugin


Examples of org.glassfish.comms.api.datacentric.DcrPlugin

     *
     * @return the loaded and instantiated plugin.
     * @throws DcrPluginLoaderException
     */
    public DcrPlugin loadDcrPlugin() throws DcrPluginLoaderException {
        DcrPlugin plugin = loadDcrPlugin(dcrFile);

        //        injectAnnotations(plugin);
        return plugin;
    }
View Full Code Here

Examples of org.glassfish.comms.api.datacentric.DcrPlugin

            ClassLoader dcrPluginLoader = new URLClassLoader(new URL[] { pluginFile.toURI().toURL() }, this.getClass().getClassLoader());
            // ...and load class through new loader
            pluginClass = (Class<DcrPlugin>) dcrPluginLoader.loadClass(pluginQualifiedClassName);

            // Create a new instance
            DcrPlugin plugin = pluginClass.newInstance();

            return plugin;
        } catch (IOException e) {
            throw new DcrPluginLoaderException("Failed to load plugin: " + pluginFile.getAbsolutePath(), e);
        } catch (InstantiationException e) {
View Full Code Here

Examples of org.glassfish.comms.api.datacentric.DcrPlugin

        if ((dcrFile != null) && dcrFile.exists()) {
            // Either the file is a DCR-XML or a java-plugin
            if (DcrPluginLoader.isSupported(dcrFile)) {
                try {
                    DcrPluginLoader dcrPluginLoader = new DcrPluginLoader(dcrFile);
                    final DcrPlugin dcrPlugin = dcrPluginLoader.loadDcrPlugin();

                    if (dcrPlugin != null) {
                        pushHashKeyExtractor(new DcrPluginHashKeyExtractor(dcrPlugin));

                        logger.log(Level.INFO, "clb.success_load_dcr_plugin", dcrFile);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.