public class SkipReferenceFieldPolicy extends Object implements BlueprintPolicy
| Constructor and Description |
|---|
SkipReferenceFieldPolicy(String field,
Class target)
Create new instance with String field that will be set and the Class
targeted by a
Blueprint.value() |
| Modifier and Type | Method and Description |
|---|---|
Class |
getTarget()
Class target of the Policy that has been mapped by a
Blueprint |
Map<ModelField,Set<Command>> |
process(ModelFactory modelFactory,
Erector erector,
Object model)
Prevents Model from being set by the Reference Model
|
public SkipReferenceFieldPolicy(String field, Class target)
Blueprint.value()field - Stringtarget - Classpublic Class getTarget()
PolicyBlueprintpublic Map<ModelField,Set<Command>> process(ModelFactory modelFactory, Erector erector, Object model) throws PolicyException
process in interface BlueprintPolicymodelFactory - modelFactoryerector - Erectormodel - ObjectPolicyExceptionCopyright © 2012. All Rights Reserved.