|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.command.registrar.RemoteCommandRegistrarConnection
public class RemoteCommandRegistrarConnection
Interacts with the command registrar that is available to all processes.
Constructor Summary | ||
---|---|---|
RemoteCommandRegistrarConnection()
Creates a RemoteCommandRegistrarConnection instance. |
Method Summary | ||
---|---|---|
Command |
getCommand(CommandRequest request)
Returns a Command instance that matches specified criteria. |
|
Command[] |
getCommands(CommandRequest request)
Returns an array of Command instances that match specified criteria. |
|
Command[] |
getCommands(CommandRequest request,
int maximumNumberOfCommands)
Returns an array of Command instances that match specified criteria. |
|
void |
registerCommand(CommandHandler handler,
CommandMetadata metadata)
Registers a command using its command handler and associated metadata. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteCommandRegistrarConnection()
RemoteCommandRegistrarConnection
instance.
Method Detail |
---|
public Command getCommand(CommandRequest request)
Command
instance that matches specified criteria.
getCommand
in interface CommandRegistrarConnection
request
- Criteria used to obtain commands.
null
if there are no matching commands.public Command[] getCommands(CommandRequest request)
Command
instances that match specified criteria.
getCommands
in interface CommandRegistrarConnection
request
- Criteria used to obtain commands.
public Command[] getCommands(CommandRequest request, int maximumNumberOfCommands)
Command
instances that match specified criteria.
getCommands
in interface CommandRegistrarConnection
request
- Criteria used to obtain commands.maximumNumberOfCommands
- Maximum number of commands to return.
public void registerCommand(CommandHandler handler, CommandMetadata metadata)
registerCommand
in interface CommandRegistrarConnection
handler
- The command handler.metadata
- The command metadata.
RegistrationException
- If metadata is null or metadata with same id has already been registered.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.