public abstract class OutputStaticTypeResolver extends Object implements OutputTypeResolver, StaticResolver
StaticResolver
implementation for the OutputModel
s.
This OutputTypeResolver
is discarded once the extension model is built. It's not registered with the dynamic
OutputTypeResolver
s.
STATIC_RESOLVER_NAME
Constructor and Description |
---|
OutputStaticTypeResolver() |
Modifier and Type | Method and Description |
---|---|
String |
getCategoryName()
This is the name of the TypeResolver Category, that relates a given
TypeKeysResolver with the input and
output type resolvers. |
MetadataType |
getOutputType(MetadataContext context,
Object key)
This method resolves the static output type for a
OutputModel proxing to the
StaticResolver.getStaticMetadata() method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResolverName
getStaticMetadata
public String getCategoryName()
TypeKeysResolver
with the input
and
output
type resolvers.
For any given component, all the input
and
output
resolvers must belong to the same Category,
that is, have the same categoryName
The category name is not used for StaticResolver
s since they are not registered in the extension.
getCategoryName
in interface NamedTypeResolver
public final MetadataType getOutputType(MetadataContext context, Object key)
OutputModel
proxing to the
StaticResolver.getStaticMetadata()
method.
The context and key are not used nor injected.
getOutputType
in interface OutputTypeResolver
context
- MetadataContext
of the MetaData resolutionkey
- K
representing the type which's structure has to be resolvedMetadataType
from the given Copyright © 2018. All rights reserved.