FileDocCategorySizeDatePackage
RemoteBindingImpl.javaAPI DocJBoss 4.2.13399Fri Jul 13 20:54:02 BST 2007org.jboss.annotation.ejb

RemoteBindingImpl

public class RemoteBindingImpl extends Object implements org.jboss.annotation.ejb.RemoteBinding
Comment
author
Bill Burke
version
$Revision: 57207 $

Fields Summary
private String
jndi
private String
stack
private String
bindUrl
private Class
proxyFactory
Constructors Summary
public RemoteBindingImpl()

      jndi = "";
      stack = "";
      bindUrl = "";
      proxyFactory = org.jboss.ejb3.remoting.RemoteProxyFactory.class;
   
public RemoteBindingImpl(String jndi, String stack, String bindUrl, Class proxyFactory)

      this.jndi = jndi;
      this.stack = stack;
      this.bindUrl = bindUrl;
      this.proxyFactory = proxyFactory;
   
Methods Summary
public java.lang.ClassannotationType()

      return null;
   
public java.lang.StringclientBindUrl()

      return bindUrl;
   
public java.lang.Classfactory()

      return proxyFactory;
   
public java.lang.StringinterceptorStack()

      return stack;
   
public java.lang.StringjndiBinding()

      return jndi;
   
public voidmerge(org.jboss.annotation.ejb.RemoteBinding annotation)

   
      if (jndi.length() == 0)
         jndi = annotation.jndiBinding();
      
      if (stack.length() == 0)
         stack = annotation.interceptorStack();
      
      if (bindUrl.length() == 0)
         bindUrl = annotation.clientBindUrl();
      
      if (proxyFactory == org.jboss.ejb3.remoting.RemoteProxyFactory.class)
         proxyFactory = annotation.factory();
      
   
public voidsetBindUrl(java.lang.String bindUrl)

      this.bindUrl = bindUrl;
   
public voidsetFactory(java.lang.Class factory)

      this.proxyFactory = factory;
   
public voidsetJndiBinding(java.lang.String jndi)

      this.jndi = jndi;
   
public voidsetStack(java.lang.String stack)

      this.stack = stack;
   
public java.lang.StringtoString()

      StringBuffer sb = new StringBuffer(100);
      sb.append("[RemoteBindingImpl:");
      sb.append(", jndi=" + jndi);
      sb.append(", stack=" + stack);
      sb.append(", bindUrl=" + bindUrl);
      sb.append(", proxyFactory=" + proxyFactory);
      sb.append(']");
      return sb.toString();