Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.lang   Previous This
Package
Next

 


Class MulticastDelegate

public abstract class MulticastDelegate extends Delegate
{
  // Constructors
  protected MulticastDelegate(Object objTarget, String strMethodName,
        String strMethodSignature);

  // Methods
  protected Delegate combine(Delegate delTail);
  protected Delegate remove(Delegate delValue);
  public Delegate[] getInvocationList();
  public boolean equals(Object objOther);
  public int hashCode();
  protected final void invokeHelperMulticast(Object[] args)
        throws Throwable;
}

This class provides support for multicast Delegates.

Delegate
  |
  +--MulticastDelegate

Constructors

MulticastDelegate

protected MulticastDelegate(Object objTarget, String strMethodName,
        String strMethodSignature);

Methods

combine

protected Delegate combine(Delegate delTail);

Combines this MulticastDelegate with the given Delegate.

equals

public boolean equals(Object objOther);

The result is true if and only if the argument is not null, the length of the invocation list, l1, for the argument is equal to the length of the invocation list, l2, for this Delegate, and for all i in [0;l1.length), l1[i] has the same target and method as l2[i].

Overrides

Delegate.equals.

getInvocationList

public Delegate[] getInvocationList();

Retrieves the invocation list of this MulticastDelegate. The resulting array may have more than one element. The invocation list of each of the elements in the returned array is guaranteed to have only one entry.

Overrides

Delegate.getInvocationList.

hashCode

public int hashCode();

Retrives a hash code for this Delegate. If two Delegates compare equals according to Delegate.equals, they will have the same hash code.

Overrides

Delegate.hashCode.

invokeHelperMulticast

protected final void invokeHelperMulticast(Object[] args)
        throws Throwable;

For each delegate in the invocation list, invokes the target method referenced by the delegate on the target object referenced by the delegate with the given parameters. The parameters must be packaged as an Object array according to the rules of Java Reflection.

remove

protected Delegate remove(Delegate delValue);

Retrieves a Delegate with an invocation list formed by removing the last occurrence (if any) of the Delegate given by the value parameter from the invocation list of this MulticastDelegate.

Overrides

Delegate.remove.