Examples of listStores()


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<AbstractName> stores = mgr.listStores();
        List<ConfigurationData> results = new ArrayList<ConfigurationData>();
        for (AbstractName storeName : stores) {
            try {
                List<ConfigurationInfo> infos = mgr.listConfigurations(storeName);
                for (ConfigurationInfo info : infos) {
View Full Code Here

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

     */
    private void uninstallConfig(ActionRequest actionRequest)
            throws PortletException, Exception {
        ConfigurationManager configManager = ConfigurationUtil
                .getConfigurationManager(kernel);
        List configStores = configManager.listStores();
        int size = configStores.size();
        String configID = getConfigID(actionRequest);
        for (int i = 0; i < size; i++) {
            ObjectName configStore = (ObjectName) configStores.get(i);
            Boolean result = (Boolean) kernel.invoke(configStore,
View Full Code Here

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

        }

        List configInfo = new ArrayList();
        ConfigurationManager configManager = ConfigurationUtil
                .getConfigurationManager(kernel);
        List stores = configManager.listStores();
        for (Iterator i = stores.iterator(); i.hasNext();) {
            ObjectName storeName = (ObjectName) i.next();
            try {
                List infos = configManager.listConfigurations(storeName);
                for (Iterator j = infos.iterator(); j.hasNext();) {
View Full Code Here

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

    private boolean produceDownloadFile(Kernel kernel, Artifact configId, HttpServletResponse response, boolean reply) throws IOException {
        //todo: replace kernel mumbo jumbo with JSR-77 navigation
        // Step 1: check if it's in a configuration store
        ConfigurationManager mgr = ConfigurationUtil.getConfigurationManager(kernel);
        List stores = mgr.listStores();
        for (int i = 0; i < stores.size(); i++) {
            AbstractName name = (AbstractName) stores.get(i);
            //todo: this is bad!!!
            if(name.getName().get(NameFactory.J2EE_NAME).equals("Local")) {
                ConfigurationStore store = (ConfigurationStore) kernel.getProxyManager().createProxy(name, ConfigurationStore.class);
View Full Code Here

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

        factory.setNamespaceAware(true);
        DocumentBuilder builder = factory.newDocumentBuilder();
        Document doc = builder.newDocument();
        Element root = doc.createElementNS("http://geronimo.apache.org/xml/ns/plugins-1.1", "geronimo-plugin-list");
        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()

        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();
            if (stores.isEmpty()) {
                throw new PortletException("No configuration store");
            }
            ObjectName storeName = (ObjectName) stores.get(0);
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();
            if (stores.isEmpty()) {
                throw new PortletException("No configuration store");
            }
            ObjectName storeName = (ObjectName) stores.get(0);
            File installDir = (File) kernel.invoke(storeName, "createNewConfigurationDir");
View Full Code Here

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

        try {
            ConfigurationManager configurationManager = ConfigurationUtil
                    .getConfigurationManager(kernel);
            URI destinationConfigURI = new URI(destinationConfigURIName);

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