Package org.apache.geronimo.aries

Examples of org.apache.geronimo.aries.ApplicationGBean


                        Configuration config = configManager.getConfiguration(info.getConfigID());
                        if(config != null){
                            for(Map.Entry<AbstractName, GBeanData> entry : config.getGBeans().entrySet()) {                              
                                if(entry.getKey().getNameProperty(NameFactory.J2EE_TYPE).equals("GBean")) {
                                    try {
                                        ApplicationGBean applicationGBean = (ApplicationGBean)PortletManager.getKernel().getGBean(entry.getKey());
                                        long[] bundleIds = applicationGBean.getApplicationContentBundleIds();
                                        BundleContext bundleContext = config.getBundleContext();
                                        for (long id : bundleIds){
                                            Bundle bundle = bundleContext.getBundle(id);
                                            if (bundle != null && bundle.getHeaders().get("Web-ContextPath") != null){
                                                details.getContextPaths().add((String)bundle.getHeaders().get("Web-ContextPath"));                                               
View Full Code Here


                        Configuration config = configManager.getConfiguration(info.getConfigID());
                        if (config != null && configManager.isRunning(info.getConfigID())) {
                            for(Map.Entry<AbstractName, GBeanData> entry : config.getGBeans().entrySet()) {
                                if(entry.getKey().getNameProperty("name").equals("AriesApplication")) {
                                    try {
                                        ApplicationGBean applicationGBean = (ApplicationGBean)PortletManager.getKernel().getGBean(entry.getKey());
                                        long[] bundleIds = applicationGBean.getApplicationContentBundleIds();
                                        BundleContext bundleContext = config.getBundleContext();
                                        for (long id : bundleIds){
                                            Bundle bundle = bundleContext.getBundle(id);
                                            if (bundle != null && bundle.getHeaders().get("Web-ContextPath") != null){
                                                details.getContextPaths().add((String)bundle.getHeaders().get("Web-ContextPath"));
View Full Code Here

                        Configuration config = configManager.getConfiguration(info.getConfigID());
                        if (config != null && configManager.isRunning(info.getConfigID())) {
                            for(Map.Entry<AbstractName, GBeanData> entry : config.getGBeans().entrySet()) {
                                if(entry.getKey().getNameProperty("name").equals("AriesApplication")) {
                                    try {
                                        ApplicationGBean applicationGBean = (ApplicationGBean)PortletManager.getKernel().getGBean(entry.getKey());
                                        long[] bundleIds = applicationGBean.getApplicationContentBundleIds();
                                        BundleContext bundleContext = config.getBundleContext();
                                        for (long id : bundleIds){
                                            Bundle bundle = bundleContext.getBundle(id);
                                            if (bundle != null && bundle.getHeaders().get("Web-ContextPath") != null){
                                                details.getContextPaths().add((String)bundle.getHeaders().get("Web-ContextPath"));
View Full Code Here

TOP

Related Classes of org.apache.geronimo.aries.ApplicationGBean

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.