Package org.int4.dirk.library
Class ProviderTypeRegistrationExtension
- java.lang.Object
-
- org.int4.dirk.library.ProviderTypeRegistrationExtension
-
- All Implemented Interfaces:
TypeRegistrationExtension
public class ProviderTypeRegistrationExtension extends java.lang.Object implements TypeRegistrationExtension
This extension detects if a class implements a method of a provider interface and registers an additional type for the type the provider provides.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.int4.dirk.spi.discovery.TypeRegistrationExtension
TypeRegistrationExtension.Registry
-
-
Constructor Summary
Constructors Constructor Description ProviderTypeRegistrationExtension(java.lang.reflect.Method providerMethod)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete 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
public void deriveTypes(TypeRegistrationExtension.Registry registry, java.lang.reflect.Type type) throws DefinitionException
Description copied from interface:TypeRegistrationExtensionCalled 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.- Specified by:
deriveTypesin interfaceTypeRegistrationExtension- Parameters:
registry- aTypeRegistrationExtension.Registrywhere derived types can be registered, nevernulltype- aTypeused as a base for derivation, nevernull- Throws:
DefinitionException- when a definition problem was encountered during derivation
-
-