Examples of GlobalRuby


Examples of org.torquebox.core.GlobalRuby

                log.error( e );
                return;
            }
           
            try {
                GlobalRuby ruby = (GlobalRuby)phaseContext.getServiceRegistry().getRequiredService( CoreServices.GLOBAL_RUBY ).getValue();
                metaDataHash =  eval( ruby, file );
            } catch (Exception e) {
                log.error( "============================================================" );
                log.error( "Failed to load '" + file.getAbsolutePath() + "':"  );
                log.error( "  " + e.getMessage() );
View Full Code Here

Examples of org.torquebox.core.GlobalRuby

        try {
            VirtualFile appKnobYml = getFile( unit );
            if (appKnobYml == null) {
                return;
            }
            GlobalRuby ruby = null;
            try {
                ruby = (GlobalRuby) phaseContext.getServiceRegistry().getRequiredService( CoreServices.GLOBAL_RUBY ).getValue();
                metaData = new TorqueBoxMetaData( ruby.evaluateErb( YAMLUtils.parseYaml( appKnobYml ) ) );
            } catch (org.jboss.msc.service.ServiceNotFoundException e) {
                log.warn("No GlobalRuby available to parse ERB in deployment descriptor");
                metaData = new TorqueBoxMetaData( YAMLUtils.parseYaml( appKnobYml ) );
            }
            rootFile = metaData.getApplicationRootFile();
View Full Code Here

Examples of org.torquebox.core.GlobalRuby

    }

    @SuppressWarnings("serial")
    protected void addGlobalRubyServices(final OperationContext context, ServiceVerificationHandler verificationHandler,
            List<ServiceController<?>> newControllers) {
        newControllers.add( context.getServiceTarget().addService( CoreServices.GLOBAL_RUBY, new GlobalRuby() )
                .addListener( verificationHandler )
                .setInitialMode( Mode.ACTIVE )
                .install() );

        String mbeanName = ObjectNameFactory.create( "torquebox", new Hashtable<String, String>() {
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.