Examples of addContextName()


Examples of org.apache.tuscany.api.TuscanyException.addContextName()

        assertEquals("foo", e.getIdentifier());
    }

    public void testAddContext() throws Exception {
        TuscanyException e = new TestException();
        e.addContextName("foo");
        e.addContextName("bar");
        assertEquals("foo", e.returnContextNames().get(0));
        assertEquals("bar", e.returnContextNames().get(1));
    }
View Full Code Here

Examples of org.apache.tuscany.api.TuscanyRuntimeException.addContextName()

        assertEquals("foo", e.getIdentifier());
    }

    public void testAddContext() throws Exception {
        TuscanyRuntimeException e = new TestException();
        e.addContextName("foo");
        e.addContextName("bar");
        assertEquals("foo", e.returnContextNames().get(0));
        assertEquals("bar", e.returnContextNames().get(1));
    }
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderConfigException.addContextName()

            // autowire
            Class<Object> claz = externalService.getConfiguredService().getPort().getServiceContract().getInterface();
            if (claz == null) {
                BuilderException e = new BuilderConfigException("Interface type not specified");
                e.setIdentifier(externalService.getName());
                e.addContextName(externalService.getName());
                throw e;
            }
            SystemExternalServiceContextFactory config = new SystemExternalServiceContextFactory(externalService
                    .getName(), new AutowireObjectFactory<Object>(claz));
            externalService.setContextFactory(config);
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderConfigException.addContextName()

                    contextFactory.addSourceWireFactories(refName, refClass, wireFactories, multiplicity);
                }
            }
            component.setContextFactory(contextFactory);
        } catch (BuilderException e) {
            e.addContextName(component.getName());
            throw e;
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderConfigException.addContextName()

            AxisService axisService = AxisService.createClientSideAxisService(wsdlDefinition, serviceQName, portName, new Options());
            serviceClient = new ServiceClient(configurationContext, axisService);

        } catch (AxisFault e) {
            BuilderConfigException bce = new BuilderConfigException("AxisFault creating external service", e);
            bce.addContextName(externalServiceName);
            throw bce;
        }

        return serviceClient;
    }
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderConfigException.addContextName()

                registerConfiguration(configuration);
                registerAutowire(service);
            } else {
                BuilderConfigException e = new BuilderConfigException("Unknown model type");
                e.setIdentifier(model.getClass().getName());
                e.addContextName(getName());
                throw e;
            }
        }
    }
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderException.addContextName()

            // autowire
            Class<Object> claz = externalService.getConfiguredService().getPort().getServiceContract().getInterface();
            if (claz == null) {
                BuilderException e = new BuilderConfigException("Interface type not specified");
                e.setIdentifier(externalService.getName());
                e.addContextName(externalService.getName());
                throw e;
            }
            SystemExternalServiceContextFactory config = new SystemExternalServiceContextFactory(externalService
                    .getName(), new AutowireObjectFactory<Object>(claz));
            externalService.setContextFactory(config);
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderException.addContextName()

                    contextFactory.addSourceWireFactories(refName, refClass, wireFactories, multiplicity);
                }
            }
            component.setContextFactory(contextFactory);
        } catch (BuilderException e) {
            e.addContextName(component.getName());
            throw e;
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.tuscany.core.builder.BuilderInitException.addContextName()

            }
            SystemEntryPointContextFactory contextFactory = new SystemEntryPointContextFactory(entryPoint.getName(),
                    targetName, serviceInterface);
            entryPoint.setContextFactory(contextFactory);
        } catch (FactoryInitException e) {
            e.addContextName(entryPoint.getName());
            throw e;
        }
    }
}
View Full Code Here

Examples of org.apache.tuscany.core.config.ConfigurationException.addContextName()

            module = newModule;
            for (Component component : newModule.getComponents()) {
                Implementation componentImplementation = component.getImplementation();
                if (componentImplementation == null) {
                    ConfigurationException e = new MissingImplementationException("Component implementation not set");
                    e.addContextName(component.getName());
                    e.addContextName(getName());
                    throw e;
                }
                configuration = (ContextFactory<Context>) component.getContextFactory();
                if (configuration == null) {
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.