站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

MethodOverrides (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.beans.factory.support
Class MethodOverrides

java.lang.Object
  extended by org.springframework.beans.factory.support.MethodOverrides

public class MethodOverrides
extends Object

Set of method overrides, determining which, if any, methods on a managed object the Spring IoC container will override at runtime.

The currently supported MethodOverride variants are LookupOverride and ReplaceOverride.

Since:
1.1
Author:
Rod Johnson
See Also:
MethodOverride, LookupOverride, ReplaceOverride

Constructor Summary
MethodOverrides()
          Create new MethodOverrides.
MethodOverrides(MethodOverrides other)
          Deep copy constructor.
 
Method Summary
 void addOverride(MethodOverride override)
          Add the given method override.
 void addOverrides(MethodOverrides other)
          Copy all given method overrides into this object.
 MethodOverride getOverride(Method method)
          Return the override for the given method, if any.
 Set getOverrides()
          Return all method overrides contained by this object.
 boolean isEmpty()
          Return whether the set of method overrides is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodOverrides

public MethodOverrides()
Create new MethodOverrides.


MethodOverrides

public MethodOverrides(MethodOverrides other)
Deep copy constructor.

Method Detail

addOverrides

public void addOverrides(MethodOverrides other)
Copy all given method overrides into this object.


addOverride

public void addOverride(MethodOverride override)
Add the given method override.


getOverrides

public Set getOverrides()
Return all method overrides contained by this object.

Returns:
Set of MethodOverride objects
See Also:
MethodOverride

isEmpty

public boolean isEmpty()
Return whether the set of method overrides is empty.


getOverride

public MethodOverride getOverride(Method method)
Return the override for the given method, if any.

Parameters:
method - method to check for overrides for
Returns:
the method override, or null if none


Copyright (c) 2002-2007 The Spring Framework Project.