Browse Source

Expose all public user class methods (including inherited methods) for reflection

Also removes declared constructors hint for user classes which should not be necessary.

See gh-29335
pull/29364/head
Juergen Hoeller 2 years ago
parent
commit
f6708d194c
  1. 3
      spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java

3
spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java

@ -117,8 +117,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem @@ -117,8 +117,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem
MemberCategory.DECLARED_FIELDS);
private static final Consumer<Builder> asProxiedUserClass = hint ->
hint.withMembers(MemberCategory.INTROSPECT_DECLARED_CONSTRUCTORS,
MemberCategory.INVOKE_DECLARED_METHODS);
hint.withMembers(MemberCategory.INVOKE_PUBLIC_METHODS);
private final DefaultListableBeanFactory beanFactory;

Loading…
Cancel
Save