T
- the actual type of the runtime object to be created.public class TypeDefinition<T> extends Object
Class
for the domain object to be created.Modifier and Type | Class and Description |
---|---|
static class |
TypeDefinition.MapEntryType<KeyType,ValueType>
Instances of this class represent the type of a map entry.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition<T> |
checkingThatIsClassOrInheritsFrom(Class<?> inforcedClass) |
static <T> TypeDefinition<T> |
fromConfigurationAttribute(String configAttributeName) |
static <T,K,V> TypeDefinition<T> |
fromMapEntryType(Class<K> keyType,
Class<V> valueType) |
static <T> TypeDefinition<T> |
fromType(Class<T> type)
Defines the object type that will be created for the component.
|
void |
visit(TypeDefinitionVisitor typeDefinitionVisitor) |
public static <T> TypeDefinition<T> fromType(Class<T> type)
Collection
, List
, Set
interfaces. In those
cases the runtime will use a default implementation.type
- Class
of the domain model to be created.TypeDefinition
created from that type.public static <T> TypeDefinition<T> fromConfigurationAttribute(String configAttributeName)
configAttributeName
- name of the configuration attribute that defines the domain object type.TypeDefinition
created from that type.public TypeDefinition<T> checkingThatIsClassOrInheritsFrom(Class<?> inforcedClass)
inforcedClass
- class to be checked as the same or a super class of the type if defined as a config attributeTypeDefinition
whith className set.public void visit(TypeDefinitionVisitor typeDefinitionVisitor)
public static <T,K,V> TypeDefinition<T> fromMapEntryType(Class<K> keyType, Class<V> valueType)
Copyright © 2018. All rights reserved.