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 Mon, 21 Jan 2002 11:24:56 GMT
hammant     02/01/21 03:24:56

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/transport/subscription
                        AbstractSubscriber.java
  Log:
  update for latest AltRMI
  
  Revision  Changes    Path
  1.7       +19 -21    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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractSubscriber.java	16 Jan 2002 13:30:03 -0000	1.6
  +++ AbstractSubscriber.java	21 Jan 2002 11:24:56 -0000	1.7
  @@ -30,11 +30,10 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    */
   public abstract class AbstractSubscriber extends AbstractLogEnabled
  -        implements AltrmiInterfaceLookup, Configurable, Initializable, Block
  -{
  +        implements AltrmiInterfaceLookup, Configurable, Initializable, Block {
   
       protected AltrmiFactory mAltrmiFactory;
       protected AltrmiHostContext mHostContext;
  @@ -46,21 +45,15 @@
        *
        * @param configuration the class configurations.
        */
  -    public void configure(Configuration configuration) throws ConfigurationException
  -    {
  +    public void configure(Configuration configuration) throws ConfigurationException {
   
           String proxyClassLocation = configuration.getChild("proxyClassLocation").getValue();
   
  -        if (proxyClassLocation.equals("client"))
  -        {
  +        if (proxyClassLocation.equals("client")) {
               mAltrmiFactory = new ClientClassAltrmiFactory(false);
  -        }
  -        else if (proxyClassLocation.equals("server"))
  -        {
  +        } else if (proxyClassLocation.equals("server")) {
               mAltrmiFactory = new ServerClassAltrmiFactory(false);
  -        }
  -        else
  -        {
  +        } else {
               throw new ConfigurationException("proxyClassLocation must be 'client' or 'server'");
           }
       }
  @@ -76,8 +69,7 @@
        * @throws AltrmiConnectionException
        *
        */
  -    public Object lookup(String publishedName) throws AltrmiConnectionException
  -    {
  +    public Object lookup(String publishedName) throws AltrmiConnectionException {
           return mAltrmiFactory.lookup(publishedName);
       }
   
  @@ -94,8 +86,7 @@
        *
        */
       public Object lookup(String publishedName, AltrmiAuthentication authentication)
  -            throws AltrmiConnectionException
  -    {
  +            throws AltrmiConnectionException {
           return mAltrmiFactory.lookup(publishedName, authentication);
       }
   
  @@ -106,8 +97,7 @@
        * @return
        *
        */
  -    public String getTextToSignForAuthentication()
  -    {
  +    public String getTextToSignForAuthentication() {
           return mAltrmiFactory.getTextToSignForAuthentication();
       }
   
  @@ -118,8 +108,16 @@
       *
       * @exception Exception if an error occurs
       */
  -    public void initialize() throws Exception
  -    {
  +    public void initialize() throws Exception {
           mAltrmiFactory.setHostContext(mHostContext);
  +    }
  +
  +    /**
  +     * Method close
  +     *
  +     *
  +     */
  +    public void close() {
  +        mAltrmiFactory.close();
       }
   }
  
  
  

--
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