Examples of listStores()


Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

            URI configId = new URI(BASE_CONFIG_URI + destinationName);

            ConfigurationManager configurationManager = ConfigurationUtil
                    .getConfigurationManager(kernel);
            List stores = configurationManager.listStores();
            assert stores.size() == 1 : "Piling one hack on another, this code only works with exactly one store";

            ObjectName storeName = (ObjectName) stores.iterator().next();
            File installDir = (File) kernel.invoke(storeName,
                    "createNewConfigurationDir");
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

        DocumentBuilder builder = factory.newDocumentBuilder();
        Document doc = builder.newDocument();
        Element root = doc.createElementNS("http://geronimo.apache.org/xml/ns/plugins-1.1", "geronimo-plugin-list");
        root.setAttribute("xmlns", "http://geronimo.apache.org/xml/ns/plugins-1.1");
        doc.appendChild(root);
        List stores = mgr.listStores();
        for (int i = 0; i < stores.size(); i++) {
            AbstractName name = (AbstractName) stores.get(i);
            List configs = mgr.listConfigurations(name);
            for (int j = 0; j < configs.size(); j++) {
                ConfigurationInfo info = (ConfigurationInfo) configs.get(j);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

            ConfigurationManager configurationManager = ConfigurationUtil
                    .getConfigurationManager(kernel);
            Artifact destinationConfigArtifact = Artifact.create(destinationConfigURIName);
            AbstractName configurationObjectName = Configuration.getConfigurationAbstractName(destinationConfigArtifact);

            List stores = configurationManager.listStores();
            assert stores.size() == 1 :"Piling one hack on another, this code only works with exactly one store";
            ObjectName storeName = (ObjectName) stores.iterator().next();

            // Unsubscribe topicbrowser before uninstalling the configuration.
            DependencyManager dm = kernel.getDependencyManager();
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

            configurationData.addGBean(adminObjectData);


            ConfigurationManager configurationManager = ConfigurationUtil
                    .getConfigurationManager(kernel);
            List stores = configurationManager.listStores();
            assert stores.size() == 1 : "Piling one hack on another, this code only works with exactly one store";

            ObjectName storeName = (ObjectName) stores.iterator().next();
            File installDir = (File) kernel.invoke(storeName,
                    "createNewConfigurationDir");
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

        return kernel.getAbstractNameFor(component);
    }

    public ConfigurationData[] getConfigurations(ConfigurationModuleType type, boolean includeChildModules) {
        ConfigurationManager mgr = ConfigurationUtil.getConfigurationManager(kernel);
        List stores = mgr.listStores();
        List results = new ArrayList();
        for (Iterator i = stores.iterator(); i.hasNext();) {
            AbstractName storeName = (AbstractName) i.next();
            try {
                List infos = mgr.listConfigurations(storeName);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

        return kernel.getAbstractNameFor(component);
    }

    public ConfigurationData[] getConfigurations(ConfigurationModuleType type, boolean includeChildModules) {
        ConfigurationManager mgr = ConfigurationUtil.getConfigurationManager(kernel);
        List stores = mgr.listStores();
        List results = new ArrayList();
        for (Iterator i = stores.iterator(); i.hasNext();) {
            AbstractName storeName = (AbstractName) i.next();
            try {
                List infos = mgr.listConfigurations(storeName);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

        DocumentBuilder builder = factory.newDocumentBuilder();
        Document doc = builder.newDocument();
        Element root = doc.createElementNS("http://geronimo.apache.org/xml/ns/plugins-1.1", "geronimo-plugin-list");
        root.setAttribute("xmlns", "http://geronimo.apache.org/xml/ns/plugins-1.1");
        doc.appendChild(root);
        List stores = mgr.listStores();
        for (int i = 0; i < stores.size(); i++) {
            AbstractName name = (AbstractName) stores.get(i);
            List configs = mgr.listConfigurations(name);
            for (int j = 0; j < configs.size(); j++) {
                ConfigurationInfo info = (ConfigurationInfo) configs.get(j);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

        return kernel.getAbstractNameFor(component);
    }

    public ConfigurationData[] getConfigurations(ConfigurationModuleType type, boolean includeChildModules) {
        ConfigurationManager mgr = ConfigurationUtil.getConfigurationManager(kernel);
        List stores = mgr.listStores();
        List results = new ArrayList();
        for (Iterator i = stores.iterator(); i.hasNext();) {
            AbstractName storeName = (AbstractName) i.next();
            try {
                List infos = mgr.listConfigurations(storeName);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

            ConfigurationManager configurationManager = ConfigurationUtil
                    .getConfigurationManager(kernel);
            Artifact destinationConfigArtifact = Artifact.create(destinationConfigURIName);
            AbstractName configurationObjectName = Configuration.getConfigurationAbstractName(destinationConfigArtifact);

            List stores = configurationManager.listStores();
            assert stores.size() == 1 :"Piling one hack on another, this code only works with exactly one store";
            ObjectName storeName = (ObjectName) stores.iterator().next();

            // Unsubscribe topicbrowser before uninstalling the configuration.
            DependencyManager dm = kernel.getDependencyManager();
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.listStores()

            configurationData.addGBean(adminObjectData);


            ConfigurationManager configurationManager = ConfigurationUtil
                    .getConfigurationManager(kernel);
            List stores = configurationManager.listStores();
            assert stores.size() == 1 : "Piling one hack on another, this code only works with exactly one store";

            ObjectName storeName = (ObjectName) stores.iterator().next();
            File installDir = (File) kernel.invoke(storeName,
                    "createNewConfigurationDir");
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.