org.pm4j.core.pm.annotation
Annotation Type PmFactoryCfg


@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public @interface PmFactoryCfg

Configuration of the bean PM factory to be used in the annotated context.

Author:
olaf boede

Required Element Summary
 java.lang.Class<?>[] beanPmClasses
          Provides a set of bean presentation models to be used for their associated bean classes.
 
Optional Element Summary
 boolean injectParentPmRef
          Parent reference injection is sometimes useful tree structures where the presentation of the leafs needs some information from the parent objects.
 

Element Detail

beanPmClasses

public abstract java.lang.Class<?>[] beanPmClasses
Provides a set of bean presentation models to be used for their associated bean classes. used within this session.

If the annotated PM is used in a PM context with an existing PmFactoryCfg, it may omit presentation model definitions that are provided by the PM parent hierarchy.
Definitions of subelements override definitions provided by parent elements.

Returns:
The set of bean PMs to be used here in addition/substitution to the context PM factory definitions.

injectParentPmRef

public abstract boolean injectParentPmRef
Parent reference injection is sometimes useful tree structures where the presentation of the leafs needs some information from the parent objects.

Returns:
Defines if the attribute should inject the element that owns this attribute as parent pm reference.
Default:
false