Package org.torquebox.core.component.processors

Examples of org.torquebox.core.component.processors.ComponentResolverHelper


                replaceService(componentResolverServiceName, new Runnable() {
                    @Override
                    public void run() {
                        log.debugf("Installing component resolver for job '%s'...", job.getName());

                        ComponentResolverHelper helper = new ComponentResolverHelper(getTarget(), getUnit(), componentResolverServiceName);

                        try {
                            helper
                                    .initializeInstantiator(rubyClassName, StringUtils.underscore(rubyClassName.trim()))
                                    .initializeResolver(JobComponent.class, config, true) // Always create new instance
                                    .installService(Mode.PASSIVE);
                        } catch (Exception e) {
                            log.errorf(e, "Couldn't install component resolver for job '%s' for deployment unit '%s'", job.getName(), getUnit());
View Full Code Here


        try {
            String rackUpFile = rackAppMetaData.getRackUpScriptFile(root.getPhysicalFile()).getAbsolutePath();
            instantiator.setCode(getCode(rackAppMetaData.getRackUpScript(root.getPhysicalFile()), rackUpFile));
            instantiator.setLocation(rackUpFile);

            ComponentResolverHelper helper = new ComponentResolverHelper(phaseContext, serviceName);

            helper
                    .initializeInstantiator(instantiator)
                    .initializeResolver(RackApplicationComponent.class, null, false, false) // Let Rack / Rails handle reloading for the web stack
                    .installService(Mode.ON_DEMAND);

        } catch (Exception e) {
View Full Code Here

    protected void deploy(DeploymentPhaseContext phaseContext, RubyStompletMetaData metaData) throws DeploymentUnitProcessingException {
        DeploymentUnit unit = phaseContext.getDeploymentUnit();

        ServiceName serviceName = StompServices.stompletComponentResolver(unit, metaData.getName());

        ComponentResolverHelper helper = new ComponentResolverHelper(phaseContext, serviceName);

        try {
            helper
                    .initializeInstantiator(metaData.getRubyClassName(), metaData.getRubyRequirePath())
                    .initializeResolver(XAStompletComponent.class, null, false)
                    .installService(Mode.ON_DEMAND);
        } catch (Exception e) {
            throw new DeploymentUnitProcessingException(e);
View Full Code Here

    protected void deploy(DeploymentPhaseContext phaseContext, ServiceMetaData metaData) throws DeploymentUnitProcessingException {
        DeploymentUnit unit = phaseContext.getDeploymentUnit();

        ServiceName serviceName = ServicesServices.serviceComponentResolver(unit, metaData.getName());

        ComponentResolverHelper helper = new ComponentResolverHelper(phaseContext, serviceName);

        try {
            helper
                    .initializeInstantiator(metaData.getClassName(), metaData.getRubyRequirePath())
                    .initializeResolver(ServiceComponent.class, metaData.getParameters(), false, false)
                    .installService(Mode.PASSIVE);
        } catch (Exception e) {
            throw new DeploymentUnitProcessingException(e);
View Full Code Here

    protected void deploy(DeploymentPhaseContext phaseContext, final MessageProcessorMetaData metaData) throws DeploymentUnitProcessingException {
        DeploymentUnit unit = phaseContext.getDeploymentUnit();

        ServiceName serviceName = MessagingServices.messageProcessorComponentResolver(unit, metaData.getName());

        ComponentResolverHelper helper = new ComponentResolverHelper(phaseContext, serviceName);

        try {
            helper
                    .initializeInstantiator(metaData.getRubyClassName(), metaData.getRubyRequirePath())
                    .initializeResolver(MessageProcessorComponent.class, metaData.getRubyConfig(), true) // Always create new instance
                    .installService(Mode.PASSIVE);
        } catch (Exception e) {
            throw new DeploymentUnitProcessingException(e);
View Full Code Here

TOP

Related Classes of org.torquebox.core.component.processors.ComponentResolverHelper

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.