CVS: TapestryBook/bannerads/src/bannerads IBannerSource.java,1.1,1.2

Howard Lewis Ship <[email protected]> Sun, 25 May 2003 14:28:04 -0700
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/bannerads/src/bannerads
In directory sc8-pr-cvs1:/tmp/cvs-serv25806/bannerads/src/bannerads

Modified Files:
	IBannerSource.java 
Log Message:
Update docs based on lengthy revisions.

Index: IBannerSource.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/bannerads/src/bannerads/IBannerSource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** IBannerSource.java	1 May 2003 17:39:23 -0000	1.1
--- IBannerSource.java	25 May 2003 21:28:02 -0000	1.2
***************
*** 1,10 ****
  package bannerads;
  
  import org.apache.tapestry.IRequestCycle;
  
  public interface IBannerSource
  {
      /**
!      * Invoked to ensure the source is initialized.
       * 
       */
--- 1,20 ----
  package bannerads;
  
+ import java.util.List;
+ 
  import org.apache.tapestry.IRequestCycle;
  
  public interface IBannerSource
  {
+ 	/**
+ 	 * Name ("<code>bannerads.banner-source</code>")
+ 	 * of an application extension that implements
+ 	 * {@link bannerads.IBannerSource}. 
+ 	 */
+ 	public static final String BANNER_SOURCE_EXTENSION_NAME = "bannerads.banner-source";
+ 	
      /**
!      * Invoked to ensure the source is initialized. This
!      * must always be invoked before any other methods.
       * 
       */
***************
*** 33,35 ****
--- 43,53 ----
       */
      public void recordClickthru(String bannerId);
+     
+     /**
+      * Returns the ids of all banners as a List of
+      * String.  The List is not sorted, but may
+      * be freely modified by the caller.
+      */
+     
+     public List getBannerIds();
  }



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge