Package org.jvnet.hk2.config
Interface ConfigBeanInterceptor<T>
-
- All Known Implementing Classes:
OnDeleteCascade
public interface ConfigBeanInterceptor<T>
Interceptor interface to be notified of read/write operations on a ConfigBean. Interceptor can be configured using the optional T interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
afterChange(PropertyChangeEvent evt, long timestamp)
Notification that an attribute has changedvoid
beforeChange(PropertyChangeEvent evt)
Notification that an attribute is about to be changedT
getConfiguration()
Interceptor can usually be configured, allowing for customizing how the interceptor should behave or do.void
readValue(ConfigBean source, String xmlName, Object value)
Notification of an attribute read
-
-
-
Method Detail
-
getConfiguration
T getConfiguration()
Interceptor can usually be configured, allowing for customizing how the interceptor should behave or do.- Returns:
- interface implementing the configuration capability of this interceptor
-
beforeChange
void beforeChange(PropertyChangeEvent evt) throws PropertyVetoException
Notification that an attribute is about to be changed- Parameters:
evt
- information about the forthcoming change- Throws:
PropertyVetoException
- if the change is unacceptable
-
afterChange
void afterChange(PropertyChangeEvent evt, long timestamp)
Notification that an attribute has changed- Parameters:
evt
- information about the changetimestamp
- time of the change
-
readValue
void readValue(ConfigBean source, String xmlName, Object value)
Notification of an attribute read- Parameters:
source
- object owning the attributexmlName
- name of the attributevalue
- value of the attribute
-
-