Examples of RubyApplication


Examples of org.torquebox.core.app.RubyApplication

            }
        } ).toString();
       
        ServiceName serviceName = unit.getServiceName();

        RubyApplication application = new RubyApplication();
        application.setEnvironmentName( rubyAppMetaData.getEnvironmentName() );
        application.setRootPath( rubyAppMetaData.getRoot().getAbsolutePath() );
        application.setName( rubyAppMetaData.getApplicationName() );
       
        ServiceName mbeanServiceName = serviceName.append( "mbean" );
        MBeanRegistrationService<RubyApplicationMBean> mbeanService = new MBeanRegistrationService<RubyApplicationMBean>( mbeanName, mbeanServiceName, new ImmediateValue<RubyApplicationMBean>( application ) );
        phaseContext.getServiceTarget().addService( mbeanServiceName, mbeanService )
                .addDependency( DependencyType.OPTIONAL, MBeanServerService.SERVICE_NAME, MBeanServer.class, mbeanService.getMBeanServerInjector() )
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.