Package org.apache.geronimo.deployment.spi

Examples of org.apache.geronimo.deployment.spi.ModuleConfigurer


    public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException {
        if (dObj == null) {
            throw new NullPointerException("No deployable object supplied to configure");
        }
        ModuleConfigurer configurer = null;
        for (ModuleConfigurer moduleConfigurer : moduleConfigurers) {
            if (moduleConfigurer.getModuleType() == dObj.getType()) {
                configurer = moduleConfigurer;
               break;
            }
        }
        if (configurer == null) {
            throw new InvalidModuleException("No configurer for module type: " + dObj.getType() + " registered");
        }
        return configurer.createConfiguration(dObj);
    }
View Full Code Here


    protected Collection<ModuleConfigurer> getModuleConfigurers() throws DeploymentManagerCreationException {
        Collection<ModuleConfigurer> moduleConfigurers = new ArrayList<ModuleConfigurer>();
        Set<AbstractName> configurerNames = kernel.listGBeans(new AbstractNameQuery(ModuleConfigurer.class.getName()));
        for (AbstractName configurerName : configurerNames) {
            try {
                ModuleConfigurer configurer = (ModuleConfigurer) kernel.getGBean(configurerName);
                moduleConfigurers.add(configurer);
            } catch (GBeanNotFoundException e) {
                throw (AssertionError) new AssertionError("No gbean found for name returned in query : " + configurerName).initCause(e);
            }
        }
View Full Code Here

                Object o = kernel.getGBean(configurerName);
                if (!(o instanceof ModuleConfigurer)) {
                    log.error("Gbean classloader: " + o.getClass().getClassLoader());
                    log.error("ModuleConfigurer classloader: " + ModuleConfigurer.class.getClassLoader());
                }
                ModuleConfigurer configurer = (ModuleConfigurer) o;
                moduleConfigurers.add(configurer);
            } catch (GBeanNotFoundException e) {
                log.warn("No gbean found for name returned in query : " + configurerName);
            }
        }
View Full Code Here

    public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException {
        if (dObj == null) {
            throw new NullPointerException("No deployable object supplied to configure");
        }
        ModuleConfigurer configurer = null;
        for (ModuleConfigurer moduleConfigurer : moduleConfigurers) {
            if (moduleConfigurer.getModuleType() == dObj.getType()) {
                configurer = moduleConfigurer;
               break;
            }
        }
        if (configurer == null) {
            throw new InvalidModuleException("No configurer for module type: " + dObj.getType() + " registered");
        }
        return configurer.createConfiguration(dObj);
    }
View Full Code Here

                Object o = kernel.getGBean(name);
                if (!(o instanceof ModuleConfigurer)) {
                    log.error("Gbean classloader: " + o.getClass().getClassLoader());
                    log.error("ModuleConfigurer classloader: " + ModuleConfigurer.class.getClassLoader());
                }
                ModuleConfigurer configurer = (ModuleConfigurer) o;
                moduleConfigurers.add(configurer);
            } catch (GBeanNotFoundException e) {
                log.warn("No gbean found for name returned in query : " + name);
            }
        }
View Full Code Here

    protected Collection<ModuleConfigurer> getModuleConfigurers() throws DeploymentManagerCreationException {
        Collection<ModuleConfigurer> moduleConfigurers = new ArrayList<ModuleConfigurer>();
        Set<AbstractName> configurerNames = kernel.listGBeans(new AbstractNameQuery(ModuleConfigurer.class.getName()));
        for (AbstractName configurerName : configurerNames) {
            try {
                ModuleConfigurer configurer = (ModuleConfigurer) kernel.getGBean(configurerName);
                moduleConfigurers.add(configurer);
            } catch (GBeanNotFoundException e) {
                throw (AssertionError)new AssertionError("No gbean found for name returned in query : " + configurerName).initCause(e);
            }
        }
View Full Code Here

    public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException {
        if (dObj == null) {
            throw new NullPointerException("No deployable object supplied to configure");
        }
        ModuleConfigurer configurer = null;
        for (ModuleConfigurer moduleConfigurer : moduleConfigurers) {
            if (moduleConfigurer.getModuleType() == dObj.getType()) {
                configurer = moduleConfigurer;
               break;
            }
        }
        if (configurer == null) {
            throw new InvalidModuleException("No configurer for module type: " + dObj.getType() + " registered");
        }
        return configurer.createConfiguration(dObj);
    }
View Full Code Here

    public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException {
        if (dObj == null) {
            throw new NullPointerException("No deployable object supplied to configure");
        }
        ModuleConfigurer configurer = null;
        for (ModuleConfigurer moduleConfigurer : moduleConfigurers) {
            if (moduleConfigurer.getModuleType() == dObj.getType()) {
                configurer = moduleConfigurer;
               break;
            }
        }
        if (configurer == null) {
            throw new InvalidModuleException("No configurer for module type: " + dObj.getType() + " registered");
        }
        return configurer.createConfiguration(dObj);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.deployment.spi.ModuleConfigurer

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.