User: patriot1burke
  Date: 02/01/13 18:01:07

  Modified:    src/main/org/jboss/proxy/ejb ProxyFactory.java
  Log:
  made more generic for inheritance
  
  Revision  Changes    Path
  1.5       +26 -26    jboss/src/main/org/jboss/proxy/ejb/ProxyFactory.java
  
  Index: ProxyFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/ProxyFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ProxyFactory.java 2002/01/05 12:08:54     1.4
  +++ ProxyFactory.java 2002/01/14 02:01:07     1.5
  @@ -49,7 +49,7 @@
    * just implementing the Proxy generation calls. Separation of concern. 
    *
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  - *  @version $Revision: 1.4 $
  + *  @version $Revision: 1.5 $
    *
    *  <p><b>Revisions:</b><br>
    *  <p><b>2001/12/30: billb</b>
  @@ -63,19 +63,19 @@
      // Metadata for the proxies
      public EJBMetaData ejbMetaData ;
      
  -   static Logger log = Logger.getLogger(ProxyFactory.class);
  -   EJBHome home;
  -   EJBObject statelessObject;
  -   
  +   protected static Logger log = Logger.getLogger(ProxyFactory.class);
  +   protected EJBHome home;
  +   protected EJBObject statelessObject;
  +
      // The name of the bean being deployed
  -   String jndiName;
  +   protected String jndiName;
      
      // The name of the delegate invoker
  -   Invoker homeInvoker;
  -   Invoker beanInvoker;
  +   protected Invoker homeInvoker;
  +   protected Invoker beanInvoker;
      
      // A pointer to the container this proxy factory is dedicated to
  -   Container container;
  +   protected Container container;
      
      // Container plugin implementation -----------------------------------------
      
  @@ -155,26 +155,26 @@
         if (log.isDebugEnabled())
            log.debug("Proxy Factory for "+jndiName+" initialized");
      }
  -   
  +
  +   protected void initInvokers() throws Exception
  +   {
  +      ObjectName oname;
  +      
  +      // Get the local invoker
  +      oname = new ObjectName(container.getBeanMetaData().getHomeInvoker());
  +      homeInvoker = (Invoker)Registry.lookup(oname);
  +      if (homeInvoker == null)
  +      throw new RuntimeException("homeInvoker is null: " + oname);
  +      oname = new ObjectName(container.getBeanMetaData().getBeanInvoker());
  +      beanInvoker = (Invoker)Registry.lookup(oname);
  +      if (beanInvoker == null)
  +      throw new RuntimeException("beanInvoker is null: " + oname);
  +   }
  +
      public void start() throws Exception
      {
         try {
  -         ObjectName oname;
  -         
  -         // Get the local invoker
  -         oname = new ObjectName(container.getBeanMetaData().getHomeInvoker());
  -         homeInvoker = (Invoker)Registry.lookup(oname);
  -         if (homeInvoker == null)
  -            throw new RuntimeException("homeInvoker is null: " + oname);
  -         
  -         oname = new ObjectName(container.getBeanMetaData().getBeanInvoker());
  -         beanInvoker = (Invoker)Registry.lookup(oname);
  -         if (beanInvoker == null)
  -            throw new RuntimeException("beanInvoker is null: " + oname);
  -            
  -         // FIXME FIXME In the near future move to 
  -         // invoker = (Invoker) Registry.lookup(new 
ObjectName(container.getInvokerType()));
  -         
  +      initInvokers();
            // Create the EJBHome
            this.home = 
               (EJBHome)Proxy.newProxyInstance(
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to