org.springframework.scripting.config
Class LangNamespaceUtils

java.lang.Object
  extended by org.springframework.scripting.config.LangNamespaceUtils

public abstract class LangNamespaceUtils
extends java.lang.Object

Since:
2.5
Author:
Rob Harrop, Mark Fisher

Field Summary
private static java.lang.String SCRIPT_FACTORY_POST_PROCESSOR_BEAN_NAME
          The unique name under which the internally managed ScriptFactoryPostProcessor is registered in the BeanDefinitionRegistry.
 
Constructor Summary
LangNamespaceUtils()
           
 
Method Summary
static BeanDefinition registerScriptFactoryPostProcessorIfNecessary(BeanDefinitionRegistry registry)
          Register a ScriptFactoryPostProcessor bean definition in the supplied BeanDefinitionRegistry if the ScriptFactoryPostProcessor hasn't already been registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_FACTORY_POST_PROCESSOR_BEAN_NAME

private static final java.lang.String SCRIPT_FACTORY_POST_PROCESSOR_BEAN_NAME
The unique name under which the internally managed ScriptFactoryPostProcessor is registered in the BeanDefinitionRegistry.

See Also:
Constant Field Values
Constructor Detail

LangNamespaceUtils

public LangNamespaceUtils()
Method Detail

registerScriptFactoryPostProcessorIfNecessary

public static BeanDefinition registerScriptFactoryPostProcessorIfNecessary(BeanDefinitionRegistry registry)
Register a ScriptFactoryPostProcessor bean definition in the supplied BeanDefinitionRegistry if the ScriptFactoryPostProcessor hasn't already been registered.

Parameters:
registry - the BeanDefinitionRegistry to register the script processor with
Returns:
the ScriptFactoryPostProcessor bean definition (new or already registered)