|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.form.support.CachingFieldFaceSource
public abstract class CachingFieldFaceSource
A convenience superclass for FieldFaceSource's that require caching to improve the performance of FieldFace lookup.
FieldFace retrieval is delegated to subclasses using the loadFieldFace(String, Object)
method.
Constructor Summary | |
---|---|
protected |
CachingFieldFaceSource()
|
Method Summary | |
---|---|
FieldFace |
getFieldFace(String field)
Return the FieldFace for the field. |
FieldFace |
getFieldFace(String field,
Object context)
Return the FieldFace for the given field name and a context. |
protected abstract FieldFace |
loadFieldFace(String field,
Object context)
Loads the FieldFace for the given field path and context id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CachingFieldFaceSource()
Method Detail |
---|
public FieldFace getFieldFace(String field)
FieldFaceSource
getFieldFace
in interface FieldFaceSource
field
- the form field
public FieldFace getFieldFace(String field, Object context)
FieldFaceSource
getFieldFace
in interface FieldFaceSource
field
- the field namecontext
- optional context for the field face
protected abstract FieldFace loadFieldFace(String field, Object context)
field
- the form field pathcontext
- optional context for which the FieldFace is being resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |