Class HardcodedPropertyAccessor<T>
- java.lang.Object
-
- org.apache.unomi.plugins.baseplugin.conditions.accessors.HardcodedPropertyAccessor<T>
-
- Direct Known Subclasses:
CampaignAccessor
,ConsentAccessor
,CustomItemAccessor
,EventAccessor
,GoalAccessor
,ItemAccessor
,MapAccessor
,MetadataAccessor
,MetadataItemAccessor
,ProfileAccessor
,RuleAccessor
,SessionAccessor
,TimestampedItemAccessor
public abstract class HardcodedPropertyAccessor<T> extends Object
Hardcoded property accessors serve two purpose: - control access to object fields, only expose the ones that are "safe" to use - prevent using Java Reflection API that is both slower and potentially unsafe as there could be potential to abuse it.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_NOT_FOUND_MARKER
protected HardcodedPropertyAccessorRegistry
registry
-
Constructor Summary
Constructors Constructor Description HardcodedPropertyAccessor(HardcodedPropertyAccessorRegistry registry)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Object
getProperty(T object, String propertyName, String leftoverExpression)
-
-
-
Field Detail
-
PROPERTY_NOT_FOUND_MARKER
public static final String PROPERTY_NOT_FOUND_MARKER
- See Also:
- Constant Field Values
-
registry
protected HardcodedPropertyAccessorRegistry registry
-
-
Constructor Detail
-
HardcodedPropertyAccessor
public HardcodedPropertyAccessor(HardcodedPropertyAccessorRegistry registry)
-
-