public class PropertyCompiler2 extends PropertyCompiler
PropertyCompiler
extension for instantiation of IProperty extensions.
This implementation is thread safe but depends on the current compilation context.Modifier and Type | Class and Description |
---|---|
protected class |
PropertyCompiler2.PropertyFactory2 |
PropertyCompiler.DefaultPropertyFactory, PropertyCompiler.IPropertyComponent, PropertyCompiler.IPropertyFactory, PropertyCompiler.SecuredPropertyFactory, PropertyCompiler.SecurePropertyCompiler
Modifier and Type | Field and Description |
---|---|
(package private) ICompilationContext |
ctxt |
Constructor and Description |
---|
PropertyCompiler2(ICompilationContext ctxt) |
Modifier and Type | Method and Description |
---|---|
IProperty2 |
compile(String property)
Compiles a property into a compiled representation, with useCommonBeanUtilsSyntax to false.
|
IProperty2 |
compile(String property,
boolean useCommonBeanUtilsSyntax)
Compiles a property into a compiled representation.
|
protected PropertyCompiler.IPropertyFactory |
createPropertyFactory()
Might be overridden to change secured
PropertyCompiler.IPropertyFactory implementation. |
IProperty2 |
secureCompile(String property)
Compiles a property into a compiled representation,
with useCommonBeanUtilsSyntax to false and checking against current default MRulesUtilsSecurityManager configuration
if the operations performed by the compiled property are allowed.
|
IProperty2 |
secureCompile(String property,
MRulesUtilsSecurityManager securityManager)
Compiles a property into a compiled representation,
with useCommonBeanUtilsSyntax to false and checking against provider MRulesUtilsSecurityManager configuration
if the operations performed by the compiled property are allowed.
|
getInstance, getPropertyFactory, getSecureCompiler, handleGetterSetterComponent, handleSimpleComponent, handleStaticComponent, handleStrictComponent, splitIntoSimpleComponents
final ICompilationContext ctxt
public PropertyCompiler2(ICompilationContext ctxt)
protected PropertyCompiler.IPropertyFactory createPropertyFactory()
PropertyCompiler
PropertyCompiler.IPropertyFactory
implementation.createPropertyFactory
in class PropertyCompiler
public IProperty2 compile(String property) throws UtilsException
IPropertyCompiler
compile
in interface IPropertyCompiler
compile
in class PropertyCompiler
UtilsException
public IProperty2 compile(String property, boolean useCommonBeanUtilsSyntax) throws UtilsException
IPropertyCompiler
compile
in interface IPropertyCompiler
compile
in class PropertyCompiler
UtilsException
public IProperty2 secureCompile(String property) throws UtilsException
IPropertyCompiler
secureCompile
in interface IPropertyCompiler
secureCompile
in class PropertyCompiler
UtilsException
public IProperty2 secureCompile(String property, MRulesUtilsSecurityManager securityManager) throws UtilsException
IPropertyCompiler
secureCompile
in interface IPropertyCompiler
secureCompile
in class PropertyCompiler
UtilsException