endpointUrl);
Object proxyRaw = null;
if (dependency.getTarget() instanceof InterfaceReference) {
InterfaceReference ir = (InterfaceReference) dependency
.getTarget();
logger.info("Type to be loaded {}", ir.getJavaType());
logger.info("comparing interface {} with {}",
interfacename, ir.getJavaType());
if (interfacename.equals(ir.getJavaType())) {
Class ifaceClazz = Class.forName(interfacename);
logger.info(
"connecting the interface {} to the endpoint {}",
interfacename, endpointUrl);
ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
factory.setServiceClass(ifaceClazz);
factory.setAddress(endpointUrl);
proxyRaw = factory.create();
} else {
logger.info("{} and {} are not equal", interfacename,
ir.getJavaType());
}
} else {
logger.info("its not a InterfaceReference");
}