Skip to content

所有支持aop的类必须要从容器里面获取它的代理对象? #1459

Open

Description

@xioayangguang

我看aop相关的源代码感觉所有支持aop的类必须要从容器里面获取它的代理对象,不能直接new一个 对象然后调用它的方法,否则无法实现aop,我理解的对吗?求告知

Activity

  1. inhere commented on Dec 30, 2021

    @inhere
    Member

    是的。aop代理类是注入了代码的,直接new 原始类不会生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions