Package org.apache.geronimo.system.configuration

Examples of org.apache.geronimo.system.configuration.LocalAttributeManager


                artifactManager,
                Collections.singleton(targetRepo),
                serverInfo);
        LocalPluginAttributeStore attributeStore;
        if (attributeManagerFrom == null) {
            attributeStore = new LocalAttributeManager(getConfigFile(),
                    getConfigSubstitutionsFile(),
                    getConfigSubstitutionsPrefix(),
                    false,
                    serverInfo);
            ((LocalAttributeManager)attributeStore).load();
View Full Code Here


        if (serverInstance == null) {
            throw new NullPointerException("No such server: " + serverInstance.getName());
        }
        ServerInfo serverInfo = new BasicServerInfo(geronimoHome.getAbsolutePath(), false);       
       
        LocalAttributeManager attributeStore = new LocalAttributeManager(serverInstance.getConfigFile(), serverInstance.getConfigSubstitutionsFile(),
                serverInstance.getConfigSubstitutionsPrefix(),
                false,
                serverInfo);
        attributeStore.load();
        for (ModuleType module : overrides.getModule()) {
            Artifact artifact = Artifact.create(module.getName());
            attributeStore.setModuleGBeans(artifact, module.getGbean(), module.isLoad(), module.getCondition());
            attributeStore.save();
        }
        if (overrides.getConfiguration().size() > 0) {
            throw new UnsupportedOperationException("Use modules, not configurations");
        }
    }
View Full Code Here

                artifactManager,
                Collections.singleton(targetRepo),
                serverInfo);
        LocalPluginAttributeStore attributeStore;
        if (attributeManagerFrom == null) {
            attributeStore = new LocalAttributeManager(getConfigFile(),
                    getConfigSubstitutionsFile(),
                    getConfigSubstitutionsPrefix(),
                    false,
                    serverInfo);
            ((LocalAttributeManager)attributeStore).load();
View Full Code Here

    public static Map<String, Object> getSubstitutions(BundleContext bundleContext,
                                                      Map<String, Object> defaultSubstitutions) {
        Kernel kernel = KernelRegistry.getSingleKernel();
        if (kernel != null) {
            try {
                LocalAttributeManager attributeManager = kernel.getGBean(LocalAttributeManager.class);
                if (attributeManager != null) {
                    return attributeManager.getConfigSubstitutionsVariables();
                }
            } catch (Exception e) {
                // ignore - fall through
                LOG.debug("Error getting config substitutions", e);
            }
View Full Code Here

                artifactManager,
                Collections.singleton(targetRepo),
                serverInfo);
        LocalPluginAttributeStore attributeStore;
        if (attributeManagerFrom == null) {
            attributeStore = new LocalAttributeManager(getConfigFile(),
                    getConfigSubstitutionsFile(),
                    getConfigSubstitutionsPrefix(),
                    false,
                    serverInfo);
            ((LocalAttributeManager)attributeStore).load();
View Full Code Here

                artifactManager,
                Collections.singleton(targetRepo),
                serverInfo);
        LocalPluginAttributeStore attributeStore;
        if (attributeManagerFrom == null) {
            attributeStore = new LocalAttributeManager(getConfigFile(),
                    getConfigSubstitutionsFile(),
                    getConfigSubstitutionsPrefix(),
                    false,
                    serverInfo);
            ((LocalAttributeManager)attributeStore).load();
View Full Code Here

                artifactManager,
                Collections.singleton(targetRepo),
                serverInfo);
        LocalPluginAttributeStore attributeStore;
        if (attributeManagerFrom == null) {
            attributeStore = new LocalAttributeManager(getConfigFile(),
                    getConfigSubstitutionsFile(),
                    getConfigSubstitutionsPrefix(),
                    false,
                    serverInfo);
            ((LocalAttributeManager)attributeStore).load();
View Full Code Here

                artifactManager,
                Collections.singleton(targetRepo),
                serverInfo);
        LocalPluginAttributeStore attributeStore;
        if (attributeManagerFrom == null) {
            attributeStore = new LocalAttributeManager(getConfigFile(),
                    getConfigSubstitutionsFile(),
                    getConfigSubstitutionsPrefix(),
                    false,
                    serverInfo);
            ((LocalAttributeManager)attributeStore).load();
View Full Code Here

TOP

Related Classes of org.apache.geronimo.system.configuration.LocalAttributeManager

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.