Package com.iizix.prop
Class ProxyImpl
java.lang.Object
com.iizix.prop.ProxyImpl
- All Implemented Interfaces:
- EventListener
Implementation of the proxy from a source container to a target container.
The proxy property does not transport private properties or properties with null values, or with errors, these properties are removed.
- Author:
- Christopher Mindus
- Field SummaryFields
- Constructor SummaryConstructorsConstructorDescription- ProxyImpl- (PropCnr source, PropCnr target, IProxyRemovedListener sourceRemoved, IProxyImplementor proxyImplementor) Constructs the proxy implementation.
- Method SummaryModifier and TypeMethodDescription- void- assignOppositeProxy- (ProxyImpl oppositeProxy) Assigns the opposite proxy in case two directional updates is used.- void- dispose()Disposes of the proxy implementation.- voidSource events.- void- setDebug- (boolean on) Enables debugging output of operations.- voidReplicates the entire source to target structure for all properties that should be proxied.
- Field Details- targetThe target property container.
- sourceThe source property container.
 
- Constructor Details- ProxyImplpublic ProxyImpl- (PropCnr source, PropCnr target, IProxyRemovedListener sourceRemoved, IProxyImplementor proxyImplementor) Constructs the proxy implementation.- Parameters:
- source- The source property container.
- target- The target property container.
- sourceRemoved- Callback if the source is removed, null for none.
- proxyImplementor- The proxy implementor that decides which properties to proxy, null for none (i.e. all non-private properties).
 
 
- Method Details- assignOppositeProxyAssigns the opposite proxy in case two directional updates is used.- Parameters:
- oppositeProxy- The opposite proxy implementation for target-to-source proxy.
 
- setDebugpublic void setDebug- (boolean on) Enables debugging output of operations.- Parameters:
- on- The debug flag.
 
- disposepublic void dispose()Disposes of the proxy implementation.
- syncSourceToTargetpublic void syncSourceToTarget()Replicates the entire source to target structure for all properties that should be proxied.
- onEventSource events.- Specified by:
- onEventin interface- EventListener
- Parameters:
- e- The event.