com.ibm.websphere.command

Interface TargetPolicy

All known implementing classes:
TargetPolicyDefault

  1. 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.

Method Summary

Modifier and Type Method and Description
  1. CommandTarget
getCommandTarget(TargetableCommand command)
Retrieves the target associated with the command, as determined by the target policy.

Method Detail

getCommandTarget

  1. 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.