Package org.apache.geronimo.kernel.config

Examples of org.apache.geronimo.kernel.config.ManageableAttributeStore


            for (AbstractName absName : containerGBeans) {
                try {
                    String id = (String) kernel.getAttribute(absName, "id");
                    if (containerId.equals(id)) {
                        GBeanData gData1  = kernel.getGBeanData(absName);
                        ManageableAttributeStore attributeStore = kernel.getGBean(ManageableAttributeStore.class);                       
                        GBeanData gData  = getGBeanDataFromConfiguration(absName);
                        for(String attributeName : gData.getAttributeNames()){
                            if(attributeName.equalsIgnoreCase(propertyKey)){
                                // Hack to make changed values reflect on configuration restart.
                                gData.setAttribute(attributeName, propertyValue);
                                Properties gbeanProps = (Properties)gData1.getAttribute("properties");
                                gbeanProps.setProperty(propertyKey, propertyValue);
                                GAttributeInfo gAttributeInfo = gData.getGBeanInfo().getAttribute(attributeName);
                                attributeStore.setValue(absName.getArtifact(), absName, gAttributeInfo, propertyValue, Thread.currentThread().getContextClassLoader());
                            }
                        }
                    }
                } catch (GBeanNotFoundException e) {
                    return new JSCommonMessage(CommonMessage.Type.Error,
View Full Code Here


            for (AbstractName absName : containerGBeans) {
                try {
                    String id = (String) kernel.getAttribute(absName, "id");
                    if (containerId.equals(id)) {
                        GBeanData gData1  = kernel.getGBeanData(absName);
                        ManageableAttributeStore attributeStore = kernel.getGBean(ManageableAttributeStore.class);
                        GBeanData gData  = getGBeanDataFromConfiguration(absName);
                        for(String attributeName : gData.getAttributeNames()){
                            if(attributeName.equalsIgnoreCase(propertyKey)){
                                // Hack to make changed values reflect on configuration restart.
                                gData.setAttribute(attributeName, propertyValue);
View Full Code Here

            for (AbstractName absName : containerGBeans) {
                try {
                    String id = (String) kernel.getAttribute(absName, "id");
                    if (containerId.equals(id)) {
                        GBeanData gData1  = kernel.getGBeanData(absName);
                        ManageableAttributeStore attributeStore = kernel.getGBean(ManageableAttributeStore.class);                       
                        GBeanData gData  = getGBeanDataFromConfiguration(absName);
                        for(String attributeName : gData.getAttributeNames()){
                            if(attributeName.equalsIgnoreCase(propertyKey)){
                                // Hack to make changed values reflect on configuration restart.
                                gData.setAttribute(attributeName, propertyValue);
                                Properties gbeanProps = (Properties)gData1.getAttribute("properties");
                                gbeanProps.setProperty(propertyKey, propertyValue);
                                GAttributeInfo gAttributeInfo = gData.getGBeanInfo().getAttribute(attributeName);
                                attributeStore.setValue(absName.getArtifact(), absName, gAttributeInfo, propertyValue, Thread.currentThread().getContextClassLoader());
                            }
                        }
                    }
                } catch (GBeanNotFoundException e) {
                    return new JSCommonMessage(CommonMessage.Type.Error,
View Full Code Here

TOP

Related Classes of org.apache.geronimo.kernel.config.ManageableAttributeStore

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.