Package org.apache.tuscany.core.builder

Examples of org.apache.tuscany.core.builder.BuilderInitException


            }
            clientBinding = bus.getBindingManager().getBindingFactory(bindingId).createClientBinding(
                    reference);
        } catch (MalformedURLException e) {
            throw new BuilderInitException(e);
        } catch (BusException e) {
            throw new BuilderInitException(e);
        } catch (WSDLException e) {
            throw new BuilderInitException(e);
        } catch (IOException e) {
            throw new BuilderInitException(e);
        }
    }
View Full Code Here


            ConfiguredService targetService = entryPoint.getConfiguredReference().getTargetConfiguredServices().get(0);
            Class serviceInterface = entryPoint.getConfiguredReference().getPort().getServiceContract().getInterface();
            if (targetService.getPart() == null) {
                // FIXME not correct
                if (targetService.getPort() == null) {
                    BuilderInitException e = new BuilderInitException("No target service specified on ");
                    e.setIdentifier(entryPoint.getName());
                }
                targetName = targetService.getPort().getName();
            } else {
                targetName = targetService.getPart().getName();
            }
            SystemEntryPointContextFactory contextFactory = new SystemEntryPointContextFactory(entryPoint.getName(),
                    targetName, serviceInterface);
            entryPoint.setContextFactory(contextFactory);
        } catch (FactoryInitException e) {
            e.addContextName(entryPoint.getName());
            throw e;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.builder.BuilderInitException

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.