CVS: Tapestry/framework/src/net/sf/tapestry/util IImmutable.java,NONE,1.1.2.1 AdaptorRegistry.java,1.3,1.3.2.1

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/util
In directory sc8-pr-cvs1:/tmp/cvs-serv9155/framework/src/net/sf/tapestry/util

Modified Files:
      Tag: hship-2-3
	AdaptorRegistry.java 
Added Files:
      Tag: hship-2-3
	IImmutable.java 
Log Message:
Automatically register components as page listeners if they implement necessary interfaces
Major rework on page property persistance
[ 653358 ] IPage.getName() == qualified name
[ 608768 ] Changes saved AFTER IPage.detach()

--- NEW FILE: IImmutable.java ---
package net.sf.tapestry.util;

/**
 *  Marker interface for classes which are known to be immutable.
 *
 *  @author Howard Lewis Ship
 *  @version $Id: IImmutable.java,v 1.1.2.1 2002/12/30 03:04:58 hship Exp $
 *  @since 2.4
 *  @see net.sf.tapestry.record.IValuePersister
 * 
 **/

public interface IImmutable
{

}

Index: AdaptorRegistry.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/util/AdaptorRegistry.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** AdaptorRegistry.java	27 Nov 2002 17:58:49 -0000	1.3
--- AdaptorRegistry.java	30 Dec 2002 03:04:58 -0000	1.3.2.1
***************
*** 176,180 ****
  
          if (registrations == null)
!             throw new IllegalArgumentException("No adaptors have been registered.");
  
          if (LOG.isDebugEnabled())
--- 176,180 ----
  
          if (registrations == null)
!             throw new IllegalArgumentException(Tapestry.getString("AdaptorRegistry.nothing-registered"));
  
          if (LOG.isDebugEnabled())
***************
*** 255,265 ****
      public String toString()
      {
!         StringBuffer buffer;
!         Iterator i;
!         Map.Entry entry;
!         boolean first = true;
!         Class registeredClass;
! 
!         buffer = new StringBuffer();
          buffer.append("AdaptorRegistry[");
  
--- 255,259 ----
      public String toString()
      {
!         StringBuffer buffer = new StringBuffer();
          buffer.append("AdaptorRegistry[");
  
***************
*** 268,272 ****
              synchronized (registrations)
              {
!                 i = registrations.entrySet().iterator();
  
                  while (i.hasNext())
--- 262,267 ----
              synchronized (registrations)
              {
!                 Iterator i = registrations.entrySet().iterator();
!                 boolean first = true;
  
                  while (i.hasNext())
***************
*** 275,281 ****
                          buffer.append(' ');
  
!                     entry = (Map.Entry) i.next();
  
!                     registeredClass = (Class) entry.getKey();
  
                      buffer.append(registeredClass.getName());
--- 270,276 ----
                          buffer.append(' ');
  
!                     Map.Entry entry = (Map.Entry) i.next();
  
!                     Class registeredClass = (Class) entry.getKey();
  
                      buffer.append(registeredClass.getName());



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.