public class PojoDescriptorGeneratorConfigurationImpl extends Object implements PojoDescriptorGeneratorConfiguration
PojoDescriptorGenerator and PojoDescriptorBuilderGenerator. It defines
the marker class or interface| Modifier and Type | Field and Description |
|---|---|
private com.google.gwt.core.ext.typeinfo.JClassType |
markerType |
| Constructor and Description |
|---|
PojoDescriptorGeneratorConfigurationImpl()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gwt.core.ext.typeinfo.JClassType |
getMarkerClassType(com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle) |
protected Class<?> |
getMarkerType()
This method gets the
Class reflecting the class or interface used as markers for objects for
POJOs where reflection should be supported via
PojoDescriptorBuilder. |
String |
getPojoTypeDescription() |
com.google.gwt.core.ext.typeinfo.JClassType |
getSupportedSuperType(com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
Determines the super-type that is
supported. |
protected boolean |
isInterfaceSupported()
Determines if if
interfaces are supported. |
boolean |
isPojoTypeSupported(com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
This method determines if the given
type will be supported and a
PojoDescriptor implementation shall be generated. |
public PojoDescriptorGeneratorConfigurationImpl()
public boolean isPojoTypeSupported(com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
PojoDescriptorGeneratorConfigurationtype will be supported and a
PojoDescriptor implementation shall be generated. Pojos. Otherwise
there is way too much clutter generated and your web-application will grow too big. So never consider to return
true for every given type.isPojoTypeSupported in interface PojoDescriptorGeneratorConfigurationtype - is the Pojo to check.typeOracle - is the TypeOracle that may be used to resolve
additional types (e.g. a marker interface).true if the given type is supported, false otherwise.protected final com.google.gwt.core.ext.typeinfo.JClassType getMarkerClassType(com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
typeOracle - is the TypeOracle.JClassType for getMarkerType().public com.google.gwt.core.ext.typeinfo.JClassType getSupportedSuperType(com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
PojoDescriptorGeneratorConfigurationsupported.getSupportedSuperType in interface PojoDescriptorGeneratorConfigurationtype - a supported type.typeOracle - is the TypeOracle that may be used to resolve
additional types (e.g. a marker interface).super-type (typically
JClassType.getSuperclass()) that is still supported or null if no such type exists.protected boolean isInterfaceSupported()
interfaces are supported. This method does NOT affect the marker type that may also be an interface.true if interfaces are
supported, false otherwise.public String getPojoTypeDescription()
getPojoTypeDescription in interface PojoDescriptorGeneratorConfigurationsupported
Pojos. Only used for debugging.protected Class<?> getMarkerType()
Class reflecting the class or interface used as markers for objects for
POJOs where reflection should be supported via
PojoDescriptorBuilder.Class.Copyright © 2001–2016 mmm-Team. All rights reserved.