Package org.apache.log4j.rule
Class AbstractRule
java.lang.Object
org.apache.log4j.rule.AbstractRule
- All Implemented Interfaces:
Serializable
,Rule
- Direct Known Subclasses:
AndRule
,ColorRule
,EqualsRule
,ExistsRule
,ExpressionRule
,InequalityRule
,LevelEqualsRule
,LevelInequalityRule.GreaterThanEqualsRule
,LevelInequalityRule.GreaterThanRule
,LevelInequalityRule.LessThanEqualsRule
,LevelInequalityRule.LessThanRule
,LikeRule
,NotEqualsRule
,NotLevelEqualsRule
,NotRule
,OrRule
,PartialTextMatchRule
,TimestampEqualsRule
,TimestampInequalityRule
An abstract Rule class that provides the PropertyChange support plumbing.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyChangeSupport
PropertySupport instance.(package private) static final long
Serialization id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add property change listener.void
Send property change notification to attached listeners.protected void
firePropertyChange
(String propertyName, Object oldVal, Object newVal) Send property change notification to attached listeners.void
Remove property change listener.
-
Field Details
-
serialVersionUID
static final long serialVersionUIDSerialization id.- See Also:
-
propertySupport
PropertySupport instance.
-
-
Constructor Details
-
AbstractRule
public AbstractRule()
-
-
Method Details
-
addPropertyChangeListener
Add property change listener.- Specified by:
addPropertyChangeListener
in interfaceRule
- Parameters:
l
- listener.
-
removePropertyChangeListener
Remove property change listener.- Specified by:
removePropertyChangeListener
in interfaceRule
- Parameters:
l
- listener.
-
firePropertyChange
Send property change notification to attached listeners.- Parameters:
propertyName
- property name.oldVal
- old value.newVal
- new value.
-
firePropertyChange
Send property change notification to attached listeners.- Parameters:
evt
- property change event.
-