Package org.apache.tuscany.spi.builder

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


                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

//        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

            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

Related Classes of org.apache.tuscany.spi.builder.BuilderConfigException

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.