com.townleyenterprises.common
Interface OverrideStrategy

All Known Implementing Classes:
UseLastOverrideStrategy

public interface OverrideStrategy

This interface defines a mechanism for two objects to be related for reading a specified key. The current override mechanism is optimized for read operations.

Version:
$Id: OverrideStrategy.java,v 1.1 2004/07/29 18:29:20 atownley Exp $
Author:
Andrew S. Townley

Method Summary
 java.lang.Object resolve(java.lang.Object key, java.lang.Object s1, java.lang.Object s2)
          This method is used to determine the relationship between the two suppliers of a given key.
 

Method Detail

resolve

public java.lang.Object resolve(java.lang.Object key,
                                java.lang.Object s1,
                                java.lang.Object s2)
This method is used to determine the relationship between the two suppliers of a given key. The method should return a reference for the object deemed to best provide the value for the given key.

Parameters:
key - the key
s1 - the first supplier
s2 - the second supplier
Returns:
the object providing the property for the given key


Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.