avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/transport/subscription AbstractSubscriber.java
Date Tue, 15 Jan 2002 17:42:30 GMT
hammant     02/01/15 09:42:30

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/transport/subscription
                        AbstractSubscriber.java
  Log:
  more lookup methods.
  
  Revision  Changes    Path
  1.5       +40 -9     jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/transport/subscription/AbstractSubscriber.java
  
  Index: AbstractSubscriber.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/transport/subscription/AbstractSubscriber.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractSubscriber.java	14 Jan 2002 13:16:03 -0000	1.4
  +++ AbstractSubscriber.java	15 Jan 2002 17:42:30 -0000	1.5
  @@ -22,6 +22,7 @@
   import org.apache.commons.altrmi.client.impl.ServerClassAltrmiFactory;
   import org.apache.commons.altrmi.client.impl.ClientClassAltrmiFactory;
   import org.apache.commons.altrmi.common.AltrmiConnectionException;
  +import org.apache.commons.altrmi.common.AltrmiAuthentication;
   
   
   /**
  @@ -29,7 +30,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    */
   
   public abstract class AbstractSubscriber
  @@ -88,19 +89,49 @@
      }
   
      /**
  -    * Initialialize the component. Initialization includes
  -    * allocating any resources required throughout the
  -    * components lifecycle.
  +    * Method lookup
  +    *
  +    *
  +    * @param publishedName
  +    * @param authentication
  +    *
  +    * @return
  +    *
  +    * @throws AltrmiConnectionException
  +    *
  +    */
  +
  +   public Object lookup (String publishedName,
  +                         AltrmiAuthentication authentication)
  +      throws AltrmiConnectionException
  +   {
  +      return mAltrmiFactory.lookup(publishedName, authentication);
  +   }
  +
  +   /**
  +    * Method getTextToSignForAuthentication
  +    *
  +    *
  +    * @return
       *
  -    * @exception Exception if an error occurs
       */
   
  +   public String getTextToSignForAuthentication ()
  +   {
  +      return mAltrmiFactory.getTextToSignForAuthentication();
  +   }
  +
  +   /**
  +   * Initialialize the component. Initialization includes
  +   * allocating any resources required throughout the
  +   * components lifecycle.
  +   *
  +   * @exception Exception if an error occurs
  +   */
  +
      public void initialize ()
         throws Exception
      {
         mAltrmiFactory.setHostContext(mHostContext);
      }
  -}
  -
  -
  -/*------ Formatted by Jindent 3.24 Basic 1.0 --- http://www.jindent.de ------*/
  +}
  \ No newline at end of file
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message