You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2002/03/18 22:22:51 UTC

cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback XMLEventDescriptor.java CallBackHandler.java XMLCallBack.java XMLSource.java

bloritsch    02/03/18 13:22:51

  Modified:    src/scratchpad/src/org/apache/cocoon/callback
                        CallBackHandler.java XMLCallBack.java
                        XMLSource.java
  Added:       src/scratchpad/src/org/apache/cocoon/callback
                        XMLEventDescriptor.java
  Log:
  update to interfaces to allow roundtrip resolution
  
  Revision  Changes    Path
  1.2       +7 -2      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/CallBackHandler.java
  
  Index: CallBackHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/CallBackHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CallBackHandler.java	18 Mar 2002 21:03:44 -0000	1.1
  +++ CallBackHandler.java	18 Mar 2002 21:22:51 -0000	1.2
  @@ -55,9 +55,14 @@
   /**
    * The CallBackHandler interface resolves the types of callback
    * events that an XML document may have.
  + *
  + * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  + * @version $Id: CallBackHandler.java,v 1.2 2002/03/18 21:22:51 bloritsch Exp $
    */
  -interface CallBackHandler
  +public interface CallBackHandler
   {
  -     XMLSource event( String type, Parameters paramList );
  +     XMLSource handleEvent( XMLEventDescriptor event );
  +
  +     XMLEventDescriptor resolve();
   }
   
  
  
  
  1.2       +3 -0      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/XMLCallBack.java
  
  Index: XMLCallBack.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/XMLCallBack.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLCallBack.java	18 Mar 2002 21:03:44 -0000	1.1
  +++ XMLCallBack.java	18 Mar 2002 21:22:51 -0000	1.2
  @@ -57,6 +57,9 @@
    * every time it is invoked.
    *
    * TODO: SHould this include a reference to the Environment?
  + *
  + * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  + * @version $Id: XMLCallBack.java,v 1.2 2002/03/18 21:22:51 bloritsch Exp $
    */
   interface XMLCallBack
   {
  
  
  
  1.2       +3 -0      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/XMLSource.java
  
  Index: XMLSource.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/XMLSource.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLSource.java	18 Mar 2002 21:03:44 -0000	1.1
  +++ XMLSource.java	18 Mar 2002 21:22:51 -0000	1.2
  @@ -54,6 +54,9 @@
   
   /**
    * The XMLSource represents a CallBack enabled XML document.
  + *
  + * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  + * @version $Id: XMLSource.java,v 1.2 2002/03/18 21:22:51 bloritsch Exp $
    */
   interface XMLSource
   {
  
  
  
  1.1                  xml-cocoon2/src/scratchpad/src/org/apache/cocoon/callback/XMLEventDescriptor.java
  
  Index: XMLEventDescriptor.java
  ===================================================================
  /*
  
   ============================================================================
                     The Apache Software License, Version 1.1
   ============================================================================
  
   Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
  
   Redistribution and use in source and binary forms, with or without modifica-
   tion, are permitted provided that the following conditions are met:
  
   1. Redistributions of  source code must  retain the above copyright  notice,
      this list of conditions and the following disclaimer.
  
   2. Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
   3. The end-user documentation included with the redistribution, if any, must
      include  the following  acknowledgment:  "This product includes  software
      developed  by the  Apache Software Foundation  (http://www.apache.org/)."
      Alternately, this  acknowledgment may  appear in the software itself,  if
      and wherever such third-party acknowledgments normally appear.
  
   4. The names "Apache Cocoon" and  "Apache Software Foundation" must  not  be
      used to  endorse or promote  products derived from  this software without
      prior written permission. For written permission, please contact
      apache@apache.org.
  
   5. Products  derived from this software may not  be called "Apache", nor may
      "Apache" appear  in their name,  without prior written permission  of the
      Apache Software Foundation.
  
   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
   APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
   DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
   OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
   ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
   (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  
   This software  consists of voluntary contributions made  by many individuals
   on  behalf of the Apache Software  Foundation and was  originally created by
   Stefano Mazzocchi  <st...@apache.org>. For more  information on the Apache
   Software Foundation, please see <http://www.apache.org/>.
  
  */
  package org.apache.cocoon.callback;
  
  import org.apache.avalon.framework.parameters.Parameters;
  
  /**
   * The XMLEventDescriptor represents an event that can be encoded and run later.
   * I needed an additional interface to represent this information because the
   * XMLSource needs a way to identify what is an acceptible event type.
   *
   * TODO: Should this include a reference to the Environment?
   * TODO: Should we use standard formats such as URNs?
   *
   * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
   * @version $Id: XMLEventDescriptor.java,v 1.1 2002/03/18 21:22:51 bloritsch Exp $
   */
  public interface XMLEventDescriptor
  {
      String getName();
      Parameters getParameters();
  }
  
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org