Author: sergeyb
Date: 2010-07-22 10:38:04 -0400 (Thu, 22 Jul 2010)
New Revision: 12687
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
Log:
[JBWS-2596] Minor update to ensure the injection works with Spring CGLIB proxies
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 2010-07-22
09:32:00 UTC (rev 12686)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2010-07-22
14:38:04 UTC (rev 12687)
@@ -41,6 +41,7 @@
private List<Endpoint> depEndpoints;
+ @SuppressWarnings("unchecked")
@Override
public void customize(Object beanInstance)
{
@@ -60,7 +61,7 @@
{
for (Endpoint depEndpoint : depEndpoints)
{
- if (depEndpoint.getTargetBeanClass() ==
factory.getServiceBean().getClass())
+ if
(depEndpoint.getTargetBeanClass().isAssignableFrom(factory.getServiceBean().getClass()))
{
depEndpoint.addAttachment(ServerFactoryBean.class, factory);
}
Show replies by date