Author: richard.opalka(a)jboss.com
Date: 2010-10-14 10:25:27 -0400 (Thu, 14 Oct 2010)
New Revision: 13122
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/serviceref/DefaultServiceRefHandler.java
Log:
refactoring
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/serviceref/DefaultServiceRefHandler.java
===================================================================
---
framework/trunk/src/main/java/org/jboss/wsf/framework/serviceref/DefaultServiceRefHandler.java 2010-10-14
14:22:24 UTC (rev 13121)
+++
framework/trunk/src/main/java/org/jboss/wsf/framework/serviceref/DefaultServiceRefHandler.java 2010-10-14
14:25:27 UTC (rev 13122)
@@ -59,19 +59,12 @@
return serviceRefBindingFactory.newServiceRefBinder(binderType);
}
- public void bindServiceRef(Context encCtx, String encName, UnifiedVirtualFile
deleteme, ClassLoader loader, ServiceRefMetaData sref) throws NamingException
+ public void bindServiceRef(Context encCtx, String encName, UnifiedVirtualFile ignored,
ClassLoader loader, ServiceRefMetaData serviceRefMD) throws NamingException
{
- final UnifiedServiceRefMetaData serviceRef = (UnifiedServiceRefMetaData)sref;
- final Type bindingType = getServiceRefType(serviceRef, loader);
- if (bindingType == Type.JAXRPC)
- {
- this.getBinder(bindingType).setupServiceRef(encCtx, encName, null, serviceRef,
loader);
- }
- else
- {
- AnnotatedElement anElement = (AnnotatedElement)sref.getAnnotatedElement();
- this.getBinder(bindingType).setupServiceRef(encCtx, encName, anElement,
serviceRef, loader);
- }
+ final UnifiedServiceRefMetaData serviceRefUMDM =
(UnifiedServiceRefMetaData)serviceRefMD;
+ final Type bindingType = getServiceRefType(serviceRefUMDM, loader);
+
+ this.getBinder(bindingType).setupServiceRef(encCtx, encName, serviceRefUMDM,
loader);
}
private Type getServiceRefType(UnifiedServiceRefMetaData serviceRef, ClassLoader
loader) throws NamingException
Show replies by date