Class BeanLevelPropertiesParser

java.lang.Object
org.openspaces.pu.container.support.BeanLevelPropertiesParser

public abstract class BeanLevelPropertiesParser extends Object
A BeanLevelProperties parser that parses -properties parameter(s) and transforms it into bean level properties. The format of the command is -properties [beanName] [properties].

By deafult, will also try and load META-INF/spring/pu.properties and put it in the context level properties.

[beanName] is optional, if not used, the properties will set the BeanLevelProperties.setContextProperties(java.util.Properties). If used, will inject properties only to the bean registered under the provided beanName within the Spring context (see BeanLevelProperties.setBeanProperties(String, java.util.Properties)). The [properties] can either start with embed:// which mean they will be provided within the command line (for example: embed://propName1=propVal1;propName2=propVal2) or they can follow Spring Resource lookup based on URL syntax or Spring extended classpath prefix (see DefaultResourceLoader).

Author:
kimchy