Package org.apache.geronimo.kernel.util

Examples of org.apache.geronimo.kernel.util.Main


        }
    }
   
    private void registerMainService(BundleContext bundleContext, Kernel kernel) {
        try {
            final Main main = kernel.getGBean(Main.class);
            bundleContext.registerService(
                    org.apache.geronimo.main.Main.class.getName(),
                    new org.apache.geronimo.main.Main() {
                        public int execute(Object opaque) {
                            return main.execute(opaque);
                        }                   
                    },
                    null);
        } catch (GBeanNotFoundException e) {
            // ignore
View Full Code Here


        }
    }
   
    private void registerMainService(BundleContext bundleContext, Kernel kernel) {
        try {
            final Main main = kernel.getGBean(Main.class);
            bundleContext.registerService(
                    org.apache.geronimo.main.Main.class.getName(),
                    new org.apache.geronimo.main.Main() {
                        public int execute(Object opaque) {
                            return main.execute(opaque);
                        }                   
                    },
                    null);
        } catch (GBeanNotFoundException e) {
            // ignore
View Full Code Here

        }
    }
   
    private void registerMainService(BundleContext bundleContext, Kernel kernel) {
        try {
            final Main main = kernel.getGBean(Main.class);
            bundleContext.registerService(
                    org.apache.geronimo.main.Main.class.getName(),
                    new org.apache.geronimo.main.Main() {
                        public int execute(Object opaque) {
                            return main.execute(opaque);
                        }                   
                    },
                    null);
        } catch (GBeanNotFoundException e) {
            // ignore
View Full Code Here

TOP

Related Classes of org.apache.geronimo.kernel.util.Main

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.