Package org.apache.geronimo.deployment

Examples of org.apache.geronimo.deployment.ModuleConfigurer


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


        initialize(kernel);
        Set configurerNames = kernel.listGBeans(CONFIGURER_QUERY);
        for (Object configurerName : configurerNames) {
            AbstractName name = (AbstractName) configurerName;
            try {
                ModuleConfigurer configurer = (ModuleConfigurer) kernel.getGBean(name);
                moduleConfigurers.put(configurer.getModuleType(), configurer);
            } catch (GBeanNotFoundException e) {
                log.warn("No gbean found for name returned in query : " + name);
            }
        }
    }
View Full Code Here

        Collection<ModuleConfigurer> moduleConfigurers = new ArrayList<ModuleConfigurer>();
        Set configurerNames = kernel.listGBeans(CONFIGURER_QUERY);
        for (Object configurerName : configurerNames) {
            AbstractName name = (AbstractName) configurerName;
            try {
                ModuleConfigurer configurer = (ModuleConfigurer) kernel.getGBean(name);
                moduleConfigurers.add(configurer);
            } catch (GBeanNotFoundException e) {
                log.warn("No gbean found for name returned in query : " + name);
            }
        }
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

    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 new AssertionError("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

    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

    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.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.