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
Modifier and TypeFieldDescriptionprotected static final String
The separator between a type and its member when printing to user. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
protected String
getTypeName
(Class<?> type) A common method for retrieving a name for type.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getDeclaringType
in interfaceBeanResolutionContext.Segment<B,
T> - Returns:
- The type requested
-
getDeclaringTypeQualifier
- Specified by:
getDeclaringTypeQualifier
in interfaceBeanResolutionContext.Segment<B,
T> - Returns:
- The declaring type qualifier
-
getArgument
- Specified by:
getArgument
in interfaceBeanResolutionContext.Segment<B,
T> - Returns:
- The argument to create the type. For a field this will be empty
-
equals
-
hashCode
public int hashCode()
-