Package javax.enterprise.deploy.spi.factories

Examples of javax.enterprise.deploy.spi.factories.DeploymentFactory


    public ManagementHelper(Kernel kernel) {
        this.kernel = kernel;
    }

    public DeploymentManager getDeploymentManager() {
        DeploymentFactory factory = new DeploymentFactoryWithKernel(kernel);
        try {
            return factory.getDeploymentManager("deployer:geronimo:inVM", null, null);
        } catch (DeploymentManagerCreationException e) {
            //            log.error(e.getMessage(), e);
            return null;
        }
    }
View Full Code Here


    public ManagementHelper(Kernel kernel) {
        this.kernel = kernel;
    }

    public DeploymentManager getDeploymentManager() {
        DeploymentFactory factory = new DeploymentFactoryWithKernel(kernel);
        try {
            return factory.getDeploymentManager("deployer:geronimo:inVM", null, null);
        } catch (DeploymentManagerCreationException e) {
            //            log.error(e.getMessage(), e);
            return null;
        }
    }
View Full Code Here

            className = jar.getManifest().getMainAttributes().getValue("J2EE-DeploymentFactory-Implementation-Class");
            if (className == null) {
                throw new DeploymentException("The driver JAR " + file.getAbsolutePath() + " does not specify a J2EE-DeploymentFactory-Implementation-Class; cannot load driver.");
            }
            jar.close();
            DeploymentFactory factory = (DeploymentFactory) Class.forName(className).newInstance();
            mgr.registerDeploymentFactory(factory);
        } catch (DeploymentException e) {
            throw e;
        } catch (Exception e) {
            throw new DeploymentSyntaxException("Unable to load driver class " + className + " from JAR " + file.getAbsolutePath(), e);
View Full Code Here

/*     */     {
/* 112 */       clone = new HashSet(this.deploymentFactories);
/*     */     }
/* 114 */     for (Iterator i = clone.iterator(); i.hasNext(); )
/*     */     {
/* 116 */       DeploymentFactory factory = (DeploymentFactory)i.next();
/* 117 */       if (factory.handlesURI(uri))
/* 118 */         return factory.getDeploymentManager(uri, userName, password);
/*     */     }
/* 120 */     throw new DeploymentManagerCreationException("No deployment manager for uri=" + uri);
/*     */   }
View Full Code Here

/*     */     {
/* 145 */       clone = new HashSet(this.deploymentFactories);
/*     */     }
/* 147 */     for (Iterator i = clone.iterator(); i.hasNext(); )
/*     */     {
/* 149 */       DeploymentFactory factory = (DeploymentFactory)i.next();
/* 150 */       if (factory.handlesURI(uri))
/* 151 */         return factory.getDisconnectedDeploymentManager(uri);
/*     */     }
/* 153 */     throw new DeploymentManagerCreationException("No deployment manager for uri=" + uri);
/*     */   }
View Full Code Here

        }
        return this.pluginRepositoryLists;
    }

    public DeploymentManager getDeploymentManager() {
        DeploymentFactory factory = new DeploymentFactoryWithKernel(kernel);
        try {
            return factory.getDeploymentManager("deployer:geronimo:inVM", null, null);
        } catch (DeploymentManagerCreationException e) {
            //            log.error(e.getMessage(), e);
            return null;
        }
    }
View Full Code Here

            if (className == null) {
                throw new DeploymentException("The driver JAR " + file.getAbsolutePath()
                        + " does not specify a J2EE-DeploymentFactory-Implementation-Class; cannot load driver.");
            }
            jar.close();
            DeploymentFactory factory = (DeploymentFactory) Class.forName(className).newInstance();
            mgr.registerDeploymentFactory(factory);
        } catch (DeploymentException e) {
            throw e;
        } catch (Exception e) {
            throw new DeploymentSyntaxException("Unable to load driver class " + className + " from JAR "
View Full Code Here

        WebDeployable webDeployable = new WebDeployable(WarUrl);
        DDBeanRoot ddBeanRoot = webDeployable.getDDBeanRoot();
        DDBean ddBean = ddBeanRoot.getChildBean("web-app")[0];

        Kernel kernel = PortletManager.getKernel();
        DeploymentFactory factory = new DeploymentFactoryWithKernel(kernel);
        DeploymentManager deploymentManager = factory.getDeploymentManager("deployer:geronimo:inVM", null, null);
        DeploymentConfiguration deploymentConfiguration = deploymentManager.createConfiguration(webDeployable);
        WebAppDConfigRoot configRoot = (WebAppDConfigRoot) deploymentConfiguration.getDConfigBeanRoot(ddBeanRoot);
        WebAppDConfigBean webApp = (WebAppDConfigBean) configRoot.getDConfigBean(ddBean);

        webApp.setContextRoot(data.getContextRoot());
View Full Code Here

            className = jar.getManifest().getMainAttributes().getValue("J2EE-DeploymentFactory-Implementation-Class");
            if (className == null) {
                throw new DeploymentException("The driver JAR " + file.getAbsolutePath() + " does not specify a J2EE-DeploymentFactory-Implementation-Class; cannot load driver.");
            }
            jar.close();
            DeploymentFactory factory = (DeploymentFactory) Class.forName(className).newInstance();
            mgr.registerDeploymentFactory(factory);
        } catch (DeploymentException e) {
            throw e;
        } catch (Exception e) {
            throw new DeploymentSyntaxException("Unable to load driver class " + className + " from JAR " + file.getAbsolutePath(), e);
View Full Code Here

        if(uri == null) {
            throw new IllegalArgumentException("URI for DeploymentManager should not be null");
        }
        DeploymentManager manager = null;
        for(Iterator i = deploymentFactories.iterator(); i.hasNext();) {
            DeploymentFactory factory = (DeploymentFactory)i.next();
            if(factory.handlesURI(uri)) {
                manager = factory.getDeploymentManager(uri, username, password);
                if(manager != null) {
                    return manager;
                }
            }
        }
View Full Code Here

TOP

Related Classes of javax.enterprise.deploy.spi.factories.DeploymentFactory

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.