|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.iternum.swlink.Linker
Multi purpose linker factory class. Provides various methods that enable creation of links with a single line of code.
| Method Summary | |
static Link |
createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Class pActivatorType,
java.lang.String pMethod,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pIsReentrant,
java.util.Map pActivatorParam)
Creates a delegate method link from a source object to a target object. |
static Link |
createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pMethod,
java.lang.Class pActivatorType)
Convenience method that creates a delegate method link from a source object to a target object. |
static Link |
createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
Activator pActivator,
java.lang.String pMethod,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pIsReentrant)
Creates a delegate method link from a source object to a target object. |
static Link |
createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
java.lang.Class pActivatorType,
java.lang.String pMethod,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pIsReentrant,
java.util.Map pActivatorParam)
Creates a delegate method link from a source object to a target object. |
static Link |
createLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pTargetPath,
java.lang.String pSourcePath,
Activator pActivator,
Action pLinkAction)
Create a general unidirectional Link. |
static Link |
createLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
java.lang.Class pActivatorType,
java.lang.Class pActionType,
boolean pIsReentrant,
java.util.Map pActivatorParam,
java.util.Map pActionParam)
Generic factory method for a one way link. |
static Link |
createPropertySyncLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourceProperty,
java.lang.String pTargetProperty,
boolean pIsBidirectional,
boolean pIsReentrant)
Creates an (optionally bidirectional) synchronization between two property change methods. |
static Link |
createPropertySyncLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourceProperty,
java.lang.String pTargetProperty,
boolean pIsBidirectional,
boolean pIsReentrant,
Activator pSourceActivator,
Activator pTargetActivator)
Creates an (optionally bidirectional) synchronization between two property change methods. |
static Link |
createPropertySyncLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourceProperty,
java.lang.String pTargetProperty,
java.lang.Class pSourceActivatorType,
java.lang.Class pTargetActivatorType,
boolean pIsBidirectional,
boolean pIsReentrant,
java.util.Map pSourceActivatorParam,
java.util.Map pTargetActivatorParam)
Creates an (optionally bidirectional) synchronization between two property change methods. |
static Link |
createTwowayLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
Activator pActivator,
Action pLinkAction,
Activator pReverseActivator,
Action pReverseLinkAction)
Creates a general bidirectional Link. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final Link createPropertySyncLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourceProperty,
java.lang.String pTargetProperty,
java.lang.Class pSourceActivatorType,
java.lang.Class pTargetActivatorType,
boolean pIsBidirectional,
boolean pIsReentrant,
java.util.Map pSourceActivatorParam,
java.util.Map pTargetActivatorParam)
pSource - The source of the linkpTarget - The target of the linkpSourceProperty - The property of the source to be synchronizedpTargetProperty - The property of the target to be synchronizedpSourceActivatorType - The Class of the source activatorpTargetActivatorType - The activiator type used activating form the
target side in case of a bidirectional linkpIsBidirectional - true if link is bidirectionalpIsReentrant - true if the link is reentrantpSourceActivatorParam - Optional parametrization of the source
activatorpTargetActivatorParam - Optional parametrization of the target
activator
Link
public static final Link createPropertySyncLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourceProperty,
java.lang.String pTargetProperty,
boolean pIsBidirectional,
boolean pIsReentrant,
Activator pSourceActivator,
Activator pTargetActivator)
pSource - The source of the linkpTarget - The target of the linkpSourceProperty - The property of the source to be synchronizedpTargetProperty - The property of the target to be synchronizedpIsBidirectional - true if link is bidirectionalpIsReentrant - true if the link is reentrantpSourceActivator - The source activatorpTargetActivator - The activiator used activating from the
target side in case of a bidirectional link
Link
public static final Link createPropertySyncLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourceProperty,
java.lang.String pTargetProperty,
boolean pIsBidirectional,
boolean pIsReentrant)
pSource - - The sourcepTarget - - The targetpSourceProperty - - The property name of the source or
a property pathpTargetProperty - - The property of the target or a
property pathpIsBidirectional - - true if the
synchronization is bidirectional.pIsReentrant - - true if the property accepts
changes before the original call returns.
public static final Link createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pMethod,
java.lang.Class pActivatorType)
pSource - The source objectpTarget - The target objectpMethod - The name of the method to call on the target objectpActivatorType - The type of the source activator
public static final Link createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Class pActivatorType,
java.lang.String pMethod,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pIsReentrant,
java.util.Map pActivatorParam)
pSource - The source objectpTarget - The target objectpActivatorType - The type of the source activatorpMethod - The name of the method to call on the target objectpPassSource - true if the source is passed in the callpPassExtraArgs - true if the extra args are
passed in the callpIsReentrant - true if the action in the link
is reentrantpActivatorParam - Optional parametrization of the source
activator
public static final Link createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
java.lang.Class pActivatorType,
java.lang.String pMethod,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pIsReentrant,
java.util.Map pActivatorParam)
pSource - The source objectpTarget - The target objectpSourcePath - The (optionally nested) source property pathpTargetPath - The (optionally nested) target property pathpActivatorType - The type of the source activatorpMethod - The name of the method to call on the target objectpPassSource - true if the source is passed in the callpPassExtraArgs - true if the extra args are
passed in the callpIsReentrant - true if the action in the link
is reentrantpActivatorParam - Optional parametrization of the source
activator
public static final Link createDelegateLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
Activator pActivator,
java.lang.String pMethod,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pIsReentrant)
pSource - The source objectpTarget - The target objectpSourcePath - The (optionally nested) source property pathpTargetPath - The (optionally nested) target property pathpActivator - The activator for the linkpMethod - The name of the method to call on the target objectpPassSource - true if the source is passed in the callpPassExtraArgs - true if the extra args are
passed in the callpIsReentrant - true if the action in the link
is reentrant
public static final Link createLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
java.lang.Class pActivatorType,
java.lang.Class pActionType,
boolean pIsReentrant,
java.util.Map pActivatorParam,
java.util.Map pActionParam)
pSource - The source of the linkpTarget - The target of the linkpSourcePath - The path to resolve the source to an
(optional) nested proprtypTargetPath - The path to resolve the target to an
(optional) nested proprtypActivatorType - The activator class namepActionType - The action class namepIsReentrant - true if the action is reentrantpActivatorParam - The optional parameter for the activatorpActionParam - The action param
public static Link createLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pTargetPath,
java.lang.String pSourcePath,
Activator pActivator,
Action pLinkAction)
pSource - The sourcepTarget - The targetpSourcePath - The path to resolve the source to an
(optional) nested proprtypTargetPath - The path to resolve the target to an
(optional) nested proprtypActivator - The activatorpLinkAction - The action
Link
public static Link createTwowayLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
Activator pActivator,
Action pLinkAction,
Activator pReverseActivator,
Action pReverseLinkAction)
pSource - The sourcepTarget - The targetpSourcePath - The path to resolve the source to an
(optional) nested proprtypTargetPath - The path to resolve the target to an
(optional) nested proprtypActivator - The activatorpLinkAction - The actionpReverseActivator - The reverse activatorpReverseLinkAction - The reverse action
Link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||