Skip to content

Commit b76b23c

Browse files
committed
refactor: make AuthorizationProxyFactory.proxy generic
Signed-off-by: dae won <[email protected]>
1 parent 226e81d commit b76b23c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/org/springframework/security/authorization/AuthorizationProxyFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* A factory for wrapping arbitrary objects in authorization-related advice
2121
*
2222
* @author Josh Cummings
23+
* @author daewon kim
2324
* @since 6.3
2425
* @see org.springframework.security.authorization.method.AuthorizationAdvisorProxyFactory
2526
*/
@@ -30,11 +31,12 @@ public interface AuthorizationProxyFactory {
3031
*
3132
* <p>
3233
* Please check the implementation for which kinds of objects it supports.
34+
* @param <T> the type of the object being proxied
3335
* @param object the object to proxy
3436
* @return the proxied object
3537
* @throws org.springframework.aop.framework.AopConfigException if a proxy cannot be
3638
* created
3739
*/
38-
Object proxy(Object object);
40+
<T> T proxy(T object);
3941

4042
}

0 commit comments

Comments
 (0)