MetaModelAnnotator

SPI that allows to add arbitrary meta data as org.apache.causeway.schema.metamodel.v2.Annotation s to the metamodel schema. Like eg. node titles for rendering of the metamodel tree structure.

Particularly useful for metamodel export tools.

API

MetaModelAnnotator.java
interface MetaModelAnnotator {
  ExporterConfig config()
  void annotate(Facet facetType, org.apache.causeway.core.metamodel.facetapi.Facet facet)
  void annotate(DomainClassDto domainClass, ObjectSpecification specification)
  void annotate(Action actionType, ObjectAction action)
  void annotate(Param parameterType, ObjectActionParameter parameter)
  void annotate(Property propertyType, OneToOneAssociation property)
  void annotate(Collection collectionType, OneToManyAssociation collection)
  T createAnnotation(T t, String name, String value)     (1)
}
1 createAnnotation(T, String, String)

creates and adds to its parent

Members

createAnnotation(T, String, String)

creates and adds to its parent