|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.chainsaw.favourites.FavouritesRegistry
A singleton class that is used as a Registry of instances of JavaBeans that are in a state that a user prefers.
Method Summary | |
void |
addFavourite(Favourite favourite)
Adds a favourite to this Registry |
void |
addFavourite(java.lang.String name,
java.lang.Object prototype)
Creates a new Favourite instance after running throught some suitability checks to make sure the object class is ok to be used as a prototype. |
java.util.List |
getFavourites()
Returns an unmodifiable List of all the known Favourite instances |
java.util.Collection |
getFavouritesByClass(java.lang.Class clazz)
Returns a Collection of Favourite instances whose getPrototype() method returns an object whose class is assignable from clazz, or more formally, such that clazz.isAssignableFrom(favourite.getPrototype().getClass()) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.util.Collection getFavouritesByClass(java.lang.Class clazz)
clazz
-
public void addFavourite(Favourite favourite)
favourite
- public java.util.List getFavourites()
public void addFavourite(java.lang.String name, java.lang.Object prototype)
name
- The name to use for the favouriteprototype
- The object to register
java.lang.IllegalArgumentException
- if the prototype does not conform
to the necessary rules to be used as a prototype (see the package documentation).
|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |