Skip to content

Commit

Permalink
try setup time feature registration
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarquezp committed Feb 6, 2025
1 parent e75875b commit eeb9352
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class HttpAppEngineFeature implements Feature {
"com.google.apphosting.api.logservice.LogServicePb");

@Override
public void beforeAnalysis(BeforeAnalysisAccess access) {
public void duringSetup(DuringSetupAccess access) {
try {
for (String className : APP_ENGINE_CLASSES) {
registerClassForReflection(className, access);
Expand All @@ -31,8 +31,7 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
}
}

private void registerClassForReflection(
String classFullQualifiedName, BeforeAnalysisAccess access) {
private void registerClassForReflection(String classFullQualifiedName, DuringSetupAccess access) {
Class<?> clazz = access.findClassByName(classFullQualifiedName);
RuntimeReflection.register(clazz);
RuntimeReflection.register(clazz.getDeclaredConstructors());
Expand Down

0 comments on commit eeb9352

Please sign in to comment.