public void afterPropertiesSet() throws Exception {
String registryKeyName = (exportedBeanName != null ? exportedBeanName : beanName);
targetSource = new ServiceRegistryTargetSource(registryKeyName, serviceRegistry);
this.proxyFactory = new ProxyFactory();
for (int i = 0; i < interfaces.length; i++) {
if (logger.isDebugEnabled()) {
logger.debug("Adding interface " + interfaces[i] + " loaded from " + interfaces[i].getClassLoader());
}
proxyFactory.addInterface(interfaces[i]);