com.ibm.websphere.command
Interface TargetPolicy
- All Known Implementing Classes:
- TargetPolicyDefault
- public interface TargetPolicy
The TargetPolicy interface declares one method, getCommandTarget(), which
implements the routine used to associate commands and targets. The
TargetPolicyDefault class provides an implementation of this interface,
but application programmers can override it to suit their needs, for
example, to allow mapping commands to targets through the use of
properties files or administrative applications.
getCommandTarget
public CommandTarget getCommandTarget(TargetableCommand command)
- Retrieves the target associated with the command, as
determined by the target policy.
- Parameters:
command
- The command whose target is requested.- Returns:
- The target for the command.