FileDocCategorySizeDatePackage
StringifierRegistryIniterImpl.javaAPI DocGlassfish v2 API3114Fri May 04 22:31:08 BST 2007com.sun.appserv.management.util.stringifier

StringifierRegistryIniterImpl

public class StringifierRegistryIniterImpl extends Object implements StringifierRegistryIniter
Registers all standard Stringifiers.

Fields Summary
private final StringifierRegistry
mRegistry
Constructors Summary
public StringifierRegistryIniterImpl(StringifierRegistry registry)

		mRegistry			= registry;
		
		registerTypes();
	
Methods Summary
public voidadd(java.lang.Class theClass, Stringifier theStringifier)

		mRegistry.add( theClass, theStringifier );
	
public StringifierRegistrygetRegistry()

		return( mRegistry );
	
voidregisterTypes()

		if ( mRegistry.lookup( Iterator.class ) == null )
		{
			add( Iterator.class, IteratorStringifier.DEFAULT );
			add( Collection.class, CollectionStringifier.DEFAULT );
			add( Object.class, SmartStringifier.DEFAULT );
		
			add( java.security.Provider.class, ProviderStringifier.DEFAULT );
		}