Author: richard.opalka(a)jboss.com
Date: 2010-10-18 08:41:36 -0400 (Mon, 18 Oct 2010)
New Revision: 13148
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/serviceref/DefaultServiceRefHandler.java
Log:
refactoring - adding new SPI methods
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-18
12:35:54 UTC (rev 13147)
+++
framework/trunk/src/main/java/org/jboss/wsf/framework/serviceref/DefaultServiceRefHandler.java 2010-10-18
12:41:36 UTC (rev 13148)
@@ -23,6 +23,7 @@
import javax.naming.Context;
import javax.naming.NamingException;
+import javax.naming.Referenceable;
import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.SPIProviderResolver;
@@ -44,6 +45,8 @@
*/
public class DefaultServiceRefHandler implements ServiceRefHandler
{
+ @Override
+ @Deprecated
public void bindServiceRef(final Context encCtx, final String encName, final
UnifiedVirtualFile ignored,
final ClassLoader loader, final ServiceRefMetaData serviceRefMD) throws
NamingException
{
@@ -53,6 +56,15 @@
this.getBinder(bindingType).setupServiceRef(encCtx, encName, null, serviceRefUMDM,
loader);
}
+
+ @Override
+ public Referenceable createReferenceable(UnifiedServiceRefMetaData serviceRef,
ClassLoader loader)
+ {
+ final Type bindingType = getServiceRefType(serviceRef, loader);
+
+ return this.getBinder(bindingType).createReferenceable(serviceRef, loader);
+ }
+
private ServiceRefBinder getBinder(final Type binderType)
{
final SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
Show replies by date