Examples of BuilderConfigException


Examples of org.apache.tuscany.spi.builder.BuilderConfigException

                                                         ComponentDefinition<I> componentDefinition,
                                                         DeploymentContext deploymentContext) {
        Class<?> implClass = componentDefinition.getImplementation().getClass();
        ComponentBuilder<I> componentBuilder = (ComponentBuilder<I>) componentBuilders.get(implClass);
        if (componentBuilder == null) {
            BuilderConfigException e = new BuilderConfigException("No builder registered for implementation");
            e.setIdentifier(implClass.getName());
            e.addContextName(componentDefinition.getName());
            throw e;
        }

        Component component = componentBuilder.build(parent, componentDefinition, deploymentContext);
        ComponentType<?, ?, ?> componentType = componentDefinition.getImplementation().getComponentType();
View Full Code Here

Examples of org.apache.tuscany.spi.builder.BuilderConfigException

            rhinoScript.setScript(sb.toString());
            rhinoScript.initScriptScope(rhinoScript.getScriptName(), sb.toString(), null, rhinoScript.getClassLoader());
            implementation.setRhinoScript(rhinoScript);

        } catch (Exception e) {
            throw new BuilderConfigException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.spi.builder.BuilderConfigException

        try {
            String script = implementation.getScript();
            // REVIEW JFM can we cache the class?
            groovyClass = groovyClassLoader.parseClass(script);
        } catch (CompilationFailedException e) {
            BuilderConfigException bce = new BuilderConfigException(e);
            bce.setIdentifier(name);
            throw bce;
        }
        // TODO deal with init and destroy

        GroovyConfiguration configuration = new GroovyConfiguration();
View Full Code Here

Examples of org.apache.tuscany.spi.builder.BuilderConfigException

            for (OutboundInvocationChain outboundInvocationConfig : outboundWire.getInvocationChains().values()) {
                // match wire chains
                InboundInvocationChain inboundInvocationConfig =
                    targetInvocationConfigs.get(outboundInvocationConfig.getOperation());
                if (inboundInvocationConfig == null) {
                    BuilderConfigException e =
                        new BuilderConfigException("Incompatible source and target interface types for reference");
                    e.setIdentifier(outboundWire.getReferenceName());
                    throw e;
                }
                if (inboundInvocationConfig.getHeadInterceptor() == null) {
                    BuilderConfigException e =
                        new BuilderConfigException("No target handler or interceptor for operation");
                    e.setIdentifier(inboundInvocationConfig.getOperation().getName());
                    throw e;
                }
                if (!(outboundInvocationConfig.getTailInterceptor() instanceof InvokerInterceptor
                    && inboundInvocationConfig.getHeadInterceptor() instanceof InvokerInterceptor)) {
                    // check that we do not have the case where the only interceptors are invokers since we just
View Full Code Here

Examples of org.apache.tuscany.spi.builder.BuilderConfigException

                Thread.currentThread().setContextClassLoader(scl);
            }
            try {
                this.configContext = new TuscanyAxisConfigurator().getConfigurationContext();
            } catch (AxisFault e) {
                throw new BuilderConfigException(e);
            }
        } finally {
            if (tccl != scl) {
                Thread.currentThread().setContextClassLoader(tccl);
            }
View Full Code Here

Examples of org.apache.tuscany.spi.builder.BuilderConfigException

//        ScopeContainer moduleScope = ctx.getModuleScope();
//        Integer initLevel = definition.getInitLevel();
        ComponentType<?, ?, ?> type = definition.getImplementation().getComponentType();
        Property<?> persistenceUnit = type.getProperties().get(PERSISTENCE_UNIT);
        if (persistenceUnit == null) {
            BuilderConfigException e =
                new BuilderConfigException("Persistence Unit not specified in JPA import in composite");
            e.setIdentifier(parent.getName());
            throw e;
        }
//        Property<?> configProps = type.getProperties().get(PERSISTENCE_UNIT);
        return null;
//        return new JPAAtomicComponent(name, parent, moduleScope, initLevel);
View Full Code Here

Examples of org.apache.tuscany.spi.builder.BuilderConfigException

            sb.setCharAt(0, Character.toLowerCase(sb.charAt(0)));
            if (m.getName().equals(sb.toString())) {
                return m;
            }
        }
        throw new BuilderConfigException("no operation named " + operationName
            + " found on service interface: " + serviceInterface.getName());
    }
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.