org.openpermis.editor.policy.beans
Class OptionalPropertyChangeDispatcher
java.lang.Object
org.openpermis.editor.policy.beans.PropertyChangeDispatcher
org.openpermis.editor.policy.beans.OptionalPropertyChangeDispatcher
- All Implemented Interfaces:
- PropertyChangeListener, EventListener
public class OptionalPropertyChangeDispatcher
- extends PropertyChangeDispatcher
Extended property change dispatcher that does not log warnings if no handler is registered.
Usually a PropertyChange
annotation has to be registered for every bean property
(with an optional fallback wildcard handler). With this property change dispatcher you are not
required to provide a property change handler annotation for every bean property. If there is
no handler (and no fallback wildcard handler), the property change is silently ignored.
- Since:
- 0.9.0
Method Summary |
protected void |
warnNoHandler(String message,
Throwable cause)
Logs a warning that a property change handler could not be found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionalPropertyChangeDispatcher
public OptionalPropertyChangeDispatcher(Object bean,
Object target)
- Creates a bean support object for the specified Java Bean.
- Parameters:
bean
- the Java Bean to operate on, must not be null
.target
- the target to dispatch property change events to, must not be null
.- Since:
- 0.9.0
warnNoHandler
protected void warnNoHandler(String message,
Throwable cause)
- Description copied from class:
PropertyChangeDispatcher
- Logs a warning that a property change handler could not be found.
- Overrides:
warnNoHandler
in class PropertyChangeDispatcher
- Parameters:
message
- the message to log.cause
- the cause.- Since:
- 0.9.0
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG