|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.converters.configuration.ChainedConverterConfiguration<C>
public class ChainedConverterConfiguration<C extends Converter>
An immutable ConverterConfiguration which chains the lookup calls for ObjectMarshallers for performance reasons
Nested Class Summary | |
---|---|
class |
ChainedConverterConfiguration.ChainedObjectMarshaller<C extends Converter>
|
Constructor Summary | |
---|---|
ChainedConverterConfiguration(ConverterConfiguration<C> cfg)
|
|
ChainedConverterConfiguration(ConverterConfiguration<C> cfg,
ProxyHandler proxyHandler)
|
Method Summary | |
---|---|
Converter.CircularReferenceBehaviour |
getCircularReferenceBehaviour()
Lookup the configured CircularReferenceBehaviour (how the converter should behave when a circular reference is detected) |
String |
getEncoding()
Lookup the configured default Character encoding for the Converter |
ObjectMarshaller<C> |
getMarshaller(Object o)
Lookup the ObjectMarshaller with the highest priority that support to marshall the given object |
List<ObjectMarshaller<C>> |
getOrderedObjectMarshallers()
Retrieve the ordered list of ObjectMarshallers |
ProxyHandler |
getProxyHandler()
Lookup the ProxyHandler used to deal with proxies instances |
boolean |
isPrettyPrint()
Lookup method whether the converter should default to pretty printed output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainedConverterConfiguration(ConverterConfiguration<C> cfg)
public ChainedConverterConfiguration(ConverterConfiguration<C> cfg, ProxyHandler proxyHandler)
Method Detail |
---|
public ObjectMarshaller<C> getMarshaller(Object o)
ConverterConfiguration
getMarshaller
in interface ConverterConfiguration<C extends Converter>
o
- the object which is about to be converted
public String getEncoding()
ConverterConfiguration
getEncoding
in interface ConverterConfiguration<C extends Converter>
public Converter.CircularReferenceBehaviour getCircularReferenceBehaviour()
ConverterConfiguration
getCircularReferenceBehaviour
in interface ConverterConfiguration<C extends Converter>
Converter.CircularReferenceBehaviour
public boolean isPrettyPrint()
ConverterConfiguration
isPrettyPrint
in interface ConverterConfiguration<C extends Converter>
public List<ObjectMarshaller<C>> getOrderedObjectMarshallers()
ConverterConfiguration
getOrderedObjectMarshallers
in interface ConverterConfiguration<C extends Converter>
public ProxyHandler getProxyHandler()
ConverterConfiguration
getProxyHandler
in interface ConverterConfiguration<C extends Converter>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |