Package io.micronaut.context
Class AbstractBeanResolutionContext.AbstractSegment<B,T>
java.lang.Object
io.micronaut.context.AbstractBeanResolutionContext.AbstractSegment<B,T>
- All Implemented Interfaces:
BeanResolutionContext.Segment<B,,T> Named
- Direct Known Subclasses:
AbstractBeanResolutionContext.AnnotationSegment,AbstractBeanResolutionContext.ConstructorSegment,AbstractBeanResolutionContext.EventListenerSegment,AbstractBeanResolutionContext.FieldSegment,AbstractBeanResolutionContext.MethodSegment
- Enclosing class:
- AbstractBeanResolutionContext
protected abstract static class AbstractBeanResolutionContext.AbstractSegment<B,T>
extends Object
implements BeanResolutionContext.Segment<B,T>, Named
Abstract class for a Segment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringThe separator between a type and its member when printing to user. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()protected StringgetTypeName(Class<?> type) A common method for retrieving a name for type.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.context.BeanResolutionContext.Segment
getInjectionPoint, toConsoleString
-
Field Details
-
MEMBER_SEPARATOR
The separator between a type and its member when printing to user.- See Also:
-
-
Method Details
-
getTypeName
A common method for retrieving a name for type. The default behavior is to use the shortened type name.- Parameters:
type- The type- Returns:
- The name to be shown to user
-
getName
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceBeanResolutionContext.Segment<B,T> - Returns:
- The type requested
-
getDeclaringTypeQualifier
- Specified by:
getDeclaringTypeQualifierin interfaceBeanResolutionContext.Segment<B,T> - Returns:
- The declaring type qualifier
-
getArgument
- Specified by:
getArgumentin interfaceBeanResolutionContext.Segment<B,T> - Returns:
- The argument to create the type. For a field this will be empty
-
equals
-
hashCode
public int hashCode()
-