postProcessPodFactory method
Post-processes the ConfigurableListablePodFactory
for this context.
Subclasses can override this to apply additional decorators, inject cross-cutting concerns, or manipulate pod definitions before initialization is finalized.
This is part of Jetleaf – a framework developers can use to build web applications.
Implementation
@override
Future<void> postProcessPodFactory() async {
if (!containsSingleton(ENVIRONMENT_POD_NAME)) {
final env = getEnvironment();
final envClass = env.getClass();
registerSingleton(
ENVIRONMENT_POD_NAME,
envClass,
object: ObjectHolder(env, packageName: env.getPackageName(), qualifiedName: envClass.getQualifiedName())
);
}
await registerAnnotationConfigProcessors();
return super.postProcessPodFactory();
}