接口 MethodReplacer


  • public interface MethodReplacer
    Interface to be implemented by classes that can reimplement any method on an IoC-managed object: the Method Injection form of Dependency Injection.

    Such methods may be (but need not be) abstract, in which case the container will create a concrete subclass to instantiate.

    从以下版本开始:
    1.1
    作者:
    Rod Johnson
    • 方法详细资料

      • reimplement

        Object reimplement​(Object obj,
                           Method method,
                           Object[] args)
                    throws Throwable
        Reimplement the given method.
        参数:
        obj - the instance we're reimplementing the method for
        method - the method to reimplement
        args - arguments to the method
        返回:
        return value for the method
        抛出:
        Throwable