FileDocCategorySizeDatePackage
LocalProxy.javaAPI DocJBoss 4.2.12565Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

LocalProxy

public abstract class LocalProxy extends Object implements org.jboss.ejb3.remoting.Proxy, Externalizable, InvocationHandler
Comment
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
private static Logger
log
protected transient Container
container
private String
containerId
Constructors Summary
protected LocalProxy()


    
   
   
protected LocalProxy(Container container)

      this.container = container;
      this.containerId = container.getObjectName().getCanonicalName();
   
Methods Summary
protected ContainergetContainer()

      if(container == null)
         container = Ejb3Registry.findContainer(containerId);
      if(container == null)
         log.warn("Container " + containerId + " is not yet available");
      return container;
   
public voidreadExternal(java.io.ObjectInput in)

      this.containerId = in.readUTF();
      // TODO: one container is private, this won't have to be done anymore
      this.container = Ejb3Registry.findContainer(containerId);
   
public abstract java.lang.StringtoString()

public voidwriteExternal(java.io.ObjectOutput out)

      out.writeUTF(containerId);