Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » support » [javadoc | source]
org.springframework.beans.factory.support
abstract public class: MethodOverride [javadoc | source]
java.lang.Object
   org.springframework.beans.factory.support.MethodOverride

All Implemented Interfaces:
    BeanMetadataElement

Direct Known Subclasses:
    ReplaceOverride, LookupOverride

Object representing the override of a method on a managed object by the IoC container.

Note that the override mechanism is not intended as a generic means of inserting crosscutting code: use AOP for that.

Constructor:
 protected MethodOverride(String methodName) 
    Construct a new override for the given method.
    Parameters:
    methodName - the name of the method to override
Method from org.springframework.beans.factory.support.MethodOverride Summary:
equals,   getMethodName,   getSource,   hashCode,   isOverloaded,   matches,   setOverloaded,   setSource
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.support.MethodOverride Detail:
 public boolean equals(Object other) 
 public String getMethodName() 
    Return the name of the method to be overridden.
 public Object getSource() 
 public int hashCode() 
 protected boolean isOverloaded() 
    Return whether the overridden method has to be considered as overloaded (that is, whether arg type matching has to happen).
 abstract public boolean matches(Method method)
    Subclasses must override this to indicate whether they match the given method. This allows for argument list checking as well as method name checking.
 protected  void setOverloaded(boolean overloaded) 
    Set whether the overridden method has to be considered as overloaded (that is, whether arg type matching has to happen).

    Default is "true"; can be switched to "false" to optimize runtime performance.

 public  void setSource(Object source) 
    Set the configuration source Object for this metadata element.

    The exact type of the object will depend on the configuration mechanism used.