Class AbstractBindingBuilder<T>
java.lang.Object
build.codemodel.dependency.injection.AbstractBindingBuilder<T>
- Type Parameters:
T- the type ofObject
- All Implemented Interfaces:
BindingBuilder<T>
An abstract
BindingBuilder.- Since:
- Oct-2024
- Author:
- brian.oliver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InjectionFrameworkTheInjectionFramework.protected final build.codemodel.foundation.usage.TypeUsageTheTypeUsage. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBindingBuilder(InjectionFramework injectionFramework, build.codemodel.foundation.usage.TypeUsage typeUsage) Constructs theAbstractBindingBuilder. -
Method Summary
Modifier and TypeMethodDescriptionConfigures theBindingBuilderto createBindings injectable withDependencys that require named values, the name being specified using theNamedannotation.build.codemodel.foundation.usage.TypeUsageObtains the currently configuredTypeUsagefor theBindingBuilder.with(build.codemodel.foundation.usage.AnnotationTypeUsage annotationTypeUsage) with(Annotation annotation) with(Class<? extends Annotation> annotationClass) Configures theBindingBuilderto createBindings requiring the specified MarkerQualifierAnnotation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BindingBuilder
asAllInterfaces, asAllInterfaces, to, to, to, toOverriding, toOverriding, toOverriding
-
Field Details
-
injectionFramework
TheInjectionFramework. -
typeUsage
protected final build.codemodel.foundation.usage.TypeUsage typeUsageTheTypeUsage.
-
-
Constructor Details
-
AbstractBindingBuilder
protected AbstractBindingBuilder(InjectionFramework injectionFramework, build.codemodel.foundation.usage.TypeUsage typeUsage) Constructs theAbstractBindingBuilder.- Parameters:
injectionFramework- theInjectionFrameworktypeUsage- theTypeUsage
-
-
Method Details
-
typeUsage
public build.codemodel.foundation.usage.TypeUsage typeUsage()Obtains the currently configuredTypeUsagefor theBindingBuilder.- Returns:
- the
TypeUsage
-
as
Description copied from interface:BindingBuilderConfigures theBindingBuilderto createBindings injectable withDependencys that require named values, the name being specified using theNamedannotation.- Specified by:
asin interfaceBindingBuilder<T>- Parameters:
name- the name- Returns:
- this
BindingBuilderto permit fluent-style method invocation
-
with
Description copied from interface:BindingBuilderConfigures theBindingBuilderto createBindings requiring the specified MarkerQualifierAnnotation.- Specified by:
within interfaceBindingBuilder<T>- Parameters:
annotationClass- theClassofAnnotation- Returns:
- this
BindingBuilderto permit fluent-style method invocation
-
with
Description copied from interface:BindingBuilder- Specified by:
within interfaceBindingBuilder<T>- Parameters:
annotation- theAnnotation- Returns:
- this
BindingBuilderto permit fluent-style method invocation
-
with
public BindingBuilder<T> with(build.codemodel.foundation.usage.AnnotationTypeUsage annotationTypeUsage) Description copied from interface:BindingBuilder- Specified by:
within interfaceBindingBuilder<T>- Parameters:
annotationTypeUsage- theAnnotationTypeUsage- Returns:
- this
BindingBuilderto permit fluent-style method invocation
-