public abstract class AbstractIntrospectionGenericHintFactory<T> extends AbstractGenericHintFactory<T>
AbstractGenericHintFactorythat registers and creates instances from implementation classes specified as String, using introspection. If the implementation fails to load the registration fails silently. This is to cover the user case where a specific container's implementation jar may not be present in the classpath if it's not used by the user. This allows users to only put the container implementation jars the require in the classpath.
|Constructor and Description|
|Modifier and Type||Method and Description|
Generic method to create an implementation based on the registered implementation classes.
Allow registering container objects using introspection so that at build time and runtime the user can handpick the container implementation jars that he want to use.
createInstance, getConstructor, getMapping, getMappings, hasMapping, registerImplementation
protected void registerImplementation(RegistrationKey key, String objectClassName)
key- the key under which to register the class name
objectClassName- the object to register
protected T createImplementation(RegistrationKey key, AbstractGenericHintFactory.GenericParameters parameters, String implementationConceptName)
key- the key under which the implementation class is registered
parameters- the additional parameters necessary to create the constructor object
implementationConceptName- the name of what the implementation class is representing. This is used in exception text messages to provide message customization. For example "container", "configuration", "deployable', etc.
Copyright © 2004–2019 Github. All rights reserved.