org.jvnet.hk2.config
Interface ConfigBeanInterceptor<T>


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
 void afterChange(PropertyChangeEvent evt, long timestamp)
          Notification that an attribute has changed
 void beforeChange(PropertyChangeEvent evt)
          Notification that an attribute is about to be changed
 T 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 change
timestamp - time of the change

readValue

void readValue(ConfigBean source,
               String xmlName,
               Object value)
Notification of an attribute read

Parameters:
source - object owning the attribute
xmlName - name of the attribute
value - value of the attribute


Copyright © 2013 Oracle Corporation. All Rights Reserved.