|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.util.stringifier.StringifierRegistryImpl
public class StringifierRegistryImpl
Holds a lookup table for Stringifiers. Certain Stringifier classes may use this registry to aid them in producing suitable output.
| Field Summary | |
|---|---|
static StringifierRegistry |
DEFAULT
|
| Constructor Summary | |
|---|---|
StringifierRegistryImpl()
Create a new registry with no next registry. |
|
StringifierRegistryImpl(StringifierRegistry registry)
Create a new registry which is chained to an existing registry. |
|
| Method Summary | |
|---|---|
void |
add(Class theClass,
Stringifier stringifier)
Add a mapping from a Class to a Stringifier |
Stringifier |
lookup(Class theClass)
Lookup a Stringifier from a Class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringifierRegistry DEFAULT
| Constructor Detail |
|---|
public StringifierRegistryImpl()
public StringifierRegistryImpl(StringifierRegistry registry)
registry - the registry to use if this registry fails to find a Stringifier| Method Detail |
|---|
public void add(Class theClass,
Stringifier stringifier)
StringifierRegistry
add in interface StringifierRegistrytheClass - the Class to which the Stringifier should be associatedstringifier - the Stringifier for the classpublic Stringifier lookup(Class theClass)
StringifierRegistry
lookup in interface StringifierRegistrytheClass - the Class
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.