Package org.torquebox.core

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


        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

    }

    @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

Related Classes of org.torquebox.core.GlobalRuby

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.