org.openspaces.pu.container.support
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
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
EMBEDDED_PROPERTIES_PREFIX
public static final String EMBEDDED_PROPERTIES_PREFIX
- See Also:
 - Constant Field Values
 
DEFAULT_CONTEXT_PROPERTIES_LOCATION
public static final String DEFAULT_CONTEXT_PROPERTIES_LOCATION
- See Also:
 - Constant Field Values
 
BeanLevelPropertiesParser
public BeanLevelPropertiesParser()
parse
public static BeanLevelProperties parse(CommandLineParser.Parameter[] params)
                                 throws IllegalArgumentException
- Throws:
 IllegalArgumentException
 
parse
public static BeanLevelProperties parse(BeanLevelProperties beanLevelProperties,
                                        CommandLineParser.Parameter[] params)
                                 throws IllegalArgumentException
- Throws:
 IllegalArgumentException
 
Copyright © GigaSpaces.