@Target(value={TYPE,PACKAGE}) @Retention(value=RUNTIME) @Repeatable(value=TypeDefs.class) public @interface TypeDef
A type definition. Much like Type
, but here we can centralize the definition under a name and
refer to that name elsewhere.
The plural form is TypeDefs
.
Type
,
UserType
,
CompositeUserType
,
Type
Modifier and Type | Required Element and Description |
---|---|
Class<?> |
typeClass
The type implementation class.
|
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
defaultForType
Name a java type for which this defined type should be the default mapping.
|
String |
name
The type name.
|
Parameter[] |
parameters
Any configuration parameters for this type definition.
|
public abstract Class<?> typeClass
The type implementation class.
public abstract String name
The type name. This is the name that would be used in other locations.
public abstract Class<?> defaultForType
Name a java type for which this defined type should be the default mapping.
public abstract Parameter[] parameters
Any configuration parameters for this type definition.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.