Perforce

com.perforce.reviewer
Interface ChangeListener


public interface ChangeListener

Change listening interface. Classes that implement this interface can be used by the Reviewer on the appropirate changelists. The implementing class must also have a no-argument constructor.

Version:
$Date: 2002/01/11 $ $Revision: #2 $
Author:
David Markley
See Also:
Reviewer

Method Summary
 void handleChange(Change chng, User[] users)
          Handles a changelist with an associated list of users.
 void setEnv(Env env)
          Sets the environment used by the implementing class.
 

Method Detail

handleChange

public void handleChange(Change chng,
                         User[] users)
Handles a changelist with an associated list of users. This is called by the Reviewer if there is a match found with the underlying class. The user is typically filled with all users that are reviewing the change except those that had specific classes associated with their Id. The user array may also be null.
Parameters:
chng - Current changelist being reviewed/handled.
users - Users that are reviewing the current change (or null).
See Also:
Reviewer

setEnv

public void setEnv(Env env)
Sets the environment used by the implementing class. This is called after the class is instantiated by the Reviewer using the no-argument constructor.
See Also:
Reviewer

Perforce

Copyright © 2001, Perforce Software, All rights reserved.