{"id":21888549,"url":"https://github.com/pythoncat1024/dynamicproxy","last_synced_at":"2025-03-22T02:23:57.767Z","repository":{"id":107255416,"uuid":"103034397","full_name":"pythoncat1024/DynamicProxy","owner":"pythoncat1024","description":"Java 动态代理| jdk \u0026 cglib 两种方式实现","archived":false,"fork":false,"pushed_at":"2017-09-10T14:24:08.000Z","size":323,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T20:32:18.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythoncat1024.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-10T14:09:39.000Z","updated_at":"2017-09-10T14:10:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc7cde0b-137e-485c-8148-5b9d13c882da","html_url":"https://github.com/pythoncat1024/DynamicProxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoncat1024%2FDynamicProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoncat1024%2FDynamicProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoncat1024%2FDynamicProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoncat1024%2FDynamicProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoncat1024","download_url":"https://codeload.github.com/pythoncat1024/DynamicProxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244895522,"owners_count":20527902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T11:15:56.971Z","updated_at":"2025-03-22T02:23:57.761Z","avatar_url":"https://github.com/pythoncat1024.png","language":"Java","readme":"# DynamicProxy\nJava 动态代理| jdk \u0026amp; cglib 两种方式实现\n\n#### 所谓动态代理，首先要确立一个目标就是要生成一个目标类的代理对象。\n明确了这一目标，后续的实现就有了一个明确的目的性了。\n* 无论是 `jdk`的原生支持，还是第三方库，比如`cglib`，目的都是一样的，就是生成一个目标类的代理对象。\n* 拿到代理对象只后，就可以像使用目标对象一样去使用里面的方法。\n* 不过既然是使用代理，就必然希望通过代理，去对目标对象对方法做一些改变，比如增强实现。（加入日志插入等）。\n这时候，就可以在代理实现等回调方法里面去做一些增强了。\n\n\u003e 大体上的套路就是这些。至于怎么去使用，往往要看实际应用场景了。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncat1024%2Fdynamicproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoncat1024%2Fdynamicproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncat1024%2Fdynamicproxy/lists"}