Author: alessio.soldano(a)jboss.com
Date: 2012-02-27 03:32:19 -0500 (Mon, 27 Feb 2012)
New Revision: 15748
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
Log:
Minor optimization
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2012-02-27
03:26:43 UTC (rev 15747)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2012-02-27
08:32:19 UTC (rev 15748)
@@ -75,9 +75,10 @@
}
if (depEndpoints != null)
{
+ final String targetBeanName = factory.getServiceBean().getClass().getName();
for (Endpoint depEndpoint : depEndpoints)
{
- if
(depEndpoint.getTargetBeanClass().getName().equals(factory.getServiceBean().getClass().getName()))
+ if (depEndpoint.getTargetBeanClass().getName().equals(targetBeanName))
{
depEndpoint.addAttachment(ServerFactoryBean.class, factory);
}
Show replies by date