FileDocCategorySizeDatePackage
CmdFactoryIniter.javaAPI DocGlassfish v2 API3188Fri May 04 22:24:50 BST 2007com.sun.cli.jmx.cmd

CmdFactoryIniter

public final class CmdFactoryIniter extends Object

Fields Summary
final CmdFactory
mFactory
Constructors Summary
public CmdFactoryIniter(CmdFactory factory)

		mFactory	= factory;
	
public CmdFactoryIniter(CmdFactory factory, Class[] cmds)

		mFactory	= factory;
		init( cmds );
	
Methods Summary
public voidaddMappings(java.lang.Class theClass)

		final String []	names	= CmdBase.getCmdNames( theClass );
		
		for( int i = 0; i < names.length; ++i )
		{
			mFactory.addCmdMapping( names[ i ], theClass );
		}
	
private voidinit(java.lang.Class[] cmds)

		for( int i = 0; i < cmds.length; ++i )
		{
			addMappings( cmds[ i ] );
		}
	
public voidremoveMappings(java.lang.Class theClass)

		final String []	names	= CmdBase.getCmdNames( theClass );
		
		for( int i = 0; i < names.length; ++i )
		{
			mFactory.removeCmdMapping( names[ i ] );
		}