org.apache.log4j.chainsaw.favourites
Class Favourite

java.lang.Object
  extended by org.apache.log4j.chainsaw.favourites.Favourite

public final class Favourite
extends java.lang.Object

A Fauvourite is just a named container of on object that can be used as a basis (prototype) for the creation of exact copies. Clients should use the FavouritesRegistry to create instances of this class so that explicit checks can be performed about the suitability of the prototype.

Author:
Paul Smith

Method Summary
 java.lang.String getName()
           
 java.lang.Object getPrototype()
          Returns the object that would be used as a basis to create new instances of that same object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public final java.lang.String getName()
Returns:
Returns the name.

getPrototype

public final java.lang.Object getPrototype()
Returns the object that would be used as a basis to create new instances of that same object.

Returns:
Returns the prototype.


Copyright © 2007 Apache Software Foundation. All Rights Reserved.