Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.core.controller.command.mapper
Interface DelegatingCommandFactory

All Superinterfaces:
  CommandFactory

All Known Implementing Classes:
  DelegatingCommandFactoryService

    public interface DelegatingCommandFactory

extends CommandFactory

A command mapper that delegates to other mappers based on the prefix of the request path.

Version:
  $Revision: 8786 $
Author:
  Julien Viet

Method Summary
`void` | `register(java.lang.String path, CommandFactory factory)` Register a command mapper with the specified path
`void` | `unregister(java.lang.String path)` Unregister a mapper for a given path.

Methods inherited from interface org.jboss.portal.core.controller.command.mapper.CommandFactory
`doMapping`

Method Detail

### register

    void register(java.lang.String path,
                  CommandFactory factory)
                  throws java.lang.IllegalArgumentException

  Register a command mapper with the specified path

  Parameters:
    `path` - the path to associate with
    `factory` - the mapper
  Throws:
    `java.lang.IllegalArgumentException` - if any argument is null or another mapper is already registered with the path

### unregister

    void unregister(java.lang.String path)
                    throws java.lang.IllegalArgumentException

  Unregister a mapper for a given path.

  Parameters:
    `path` - the path
  Throws:
    `java.lang.IllegalArgumentException` - if the argument is null or no mapper is registered under that path

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD