open static fun registerScriptFactoryPostProcessorIfNecessary(registry: BeanDefinitionRegistry): BeanDefinition
Register a ScriptFactoryPostProcessor bean definition in the supplied BeanDefinitionRegistry if the ScriptFactoryPostProcessor hasn't already been registered.
registry - the BeanDefinitionRegistry to register the script processor with
Return
the ScriptFactoryPostProcessor bean definition (new or already registered)