.values()) {
targetWireFactory.initialize();
}
}
} catch (WireFactoryInitException e) {
ProxyConfigurationException ce = new ProxyConfigurationException(e);
ce.addContextName(getName());
throw ce;
}
}
for (EntryPoint ep : newModule.getEntryPoints()) {
ContextFactory<Context> contextFactory = (ContextFactory<Context>) ep.getContextFactory();
wireSource(contextFactory);
buildTarget(contextFactory);
contextFactory.prepare(this);
try {
if (contextFactory.getSourceWireFactories() != null) {
for (SourceWireFactory sourceWireFactory : contextFactory.getSourceWireFactories())
{
sourceWireFactory.initialize();
}
}
if (contextFactory.getTargetWireFactories() != null) {
for (TargetWireFactory targetWireFactory : contextFactory.getTargetWireFactories()
.values()) {
targetWireFactory.initialize();
}
}
} catch (WireFactoryInitException e) {
ProxyConfigurationException ce = new ProxyConfigurationException(e);
ce.addContextName(getName());
throw ce;
}
}
for (ExternalService es : newModule.getExternalServices()) {
ContextFactory<Context> contextFactory = (ContextFactory<Context>) es.getContextFactory();
wireSource(contextFactory);
buildTarget(contextFactory);
contextFactory.prepare(this);
try {
if (contextFactory.getSourceWireFactories() != null) {
for (SourceWireFactory sourceWireFactory : contextFactory.getSourceWireFactories())
{
sourceWireFactory.initialize();
}
}
if (contextFactory.getTargetWireFactories() != null) {
for (WireFactory targetWireFactory : contextFactory.getTargetWireFactories()
.values()) {
targetWireFactory.initialize();
}
}
} catch (WireFactoryInitException e) {
ProxyConfigurationException ce = new ProxyConfigurationException(e);
ce.addContextName(getName());
throw ce;
}
}