Package org.int4.dirk.spi.discovery
Interface TypeRegistrationExtension
-
public interface TypeRegistrationExtensionAn extension called during registration of types to derive and register additional types for a given type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTypeRegistrationExtension.RegistryAllows registration of newly derived types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderiveTypes(TypeRegistrationExtension.Registry registry, java.lang.reflect.Type type)Called during registration of new types to allow the extension to register further types that can be directly derived from the givenType.
-
-
-
Method Detail
-
deriveTypes
void deriveTypes(TypeRegistrationExtension.Registry registry, java.lang.reflect.Type type) throws DefinitionException
Called during registration of new types to allow the extension to register further types that can be directly derived from the givenType. For example, the given type could have special annotations which define further types.- Parameters:
type- aTypeused as a base for derivation, nevernullregistry- aTypeRegistrationExtension.Registrywhere derived types can be registered, nevernull- Throws:
DefinitionException- when a definition problem was encountered during derivation
-
-