public class TitleAnnotationFacetFactory extends FacetFactoryAbstract implements AdapterManagerAware, MetaModelValidatorRefiner
FacetFactory.AbstractProcessContext<T extends FacetHolder>, FacetFactory.ProcessClassContext, FacetFactory.ProcessContextWithMetadataProperties<T extends FacetHolder>, FacetFactory.ProcessMethodContext, FacetFactory.ProcessParameterContext| Constructor and Description |
|---|
TitleAnnotationFacetFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(FacetFactory.ProcessClassContext processClassContext)
If no method tagged with
Title annotation then will use Facets
provided by FallbackFacetFactory instead. |
void |
refineMetaModelValidator(MetaModelValidatorComposite metaModelValidator,
IsisConfiguration configuration)
Violation if there is a class that has both a title() method and also any non-inherited method
annotated with @Title.
|
void |
setAdapterManager(AdapterManager adapterMap) |
getFeatureTypes, getSpecificationLoader, process, processParams, setSpecificationLookuppublic TitleAnnotationFacetFactory()
public void process(FacetFactory.ProcessClassContext processClassContext)
Title annotation then will use Facets
provided by FallbackFacetFactory instead.process in interface FacetFactoryprocess in class FacetFactoryAbstractpublic void setAdapterManager(AdapterManager adapterMap)
setAdapterManager in interface AdapterManagerAwarepublic void refineMetaModelValidator(MetaModelValidatorComposite metaModelValidator, IsisConfiguration configuration)
If there are only inherited methods annotated with @Title then this is not a violation; but
(from the implementation of TitleMethodFacetFactory the imperative title() method will take
precedence.
refineMetaModelValidator in interface MetaModelValidatorRefinerCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.