Skip to content

Commit

Permalink
CAUSEWAY-3075: minor code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-huber committed Apr 17, 2023
1 parent d511c11 commit aa3973d
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 4,079 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ component/objectstore/xml/tmp/objects/
component/objectstore/xml/xml/objects/
component/objectstore/xml/tmp/tests/

# backup files
*.bak

# log files
*.log

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.causeway.core.metamodel.facetapi.Facet;
import org.apache.causeway.core.metamodel.facetapi.FacetAbstract;
import org.apache.causeway.core.metamodel.facetapi.FacetHolder;
import org.apache.causeway.core.metamodel.spec.ObjectSpecification;

import lombok.NonNull;

Expand Down Expand Up @@ -70,6 +71,13 @@ protected final void updateEventType(
this.eventTypeOrigin = eventTypeOrigin;
}

/**
* Called by meta-model post-processors, to honor domain object annotations on mixees.
* (required only, if this facet belongs to a mixed-in member)
*/
public void initWithMixee(final ObjectSpecification mixeeSpec) {}


@Override
public void visitAttributes(final BiConsumer<String, Object> visitor) {
super.visitAttributes(visitor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ public ActionDomainEventFacet(
domainEventHelper = DomainEventHelper.ofServiceRegistry(getServiceRegistry());
}

/**
* Called by meta-model post-processors, to honor domain object annotations on mixees.
* (required only, if this facet belongs to a mixed-in member)
*/
@Override
public void initWithMixee(final ObjectSpecification mixeeSpec) {
mixeeSpec
.lookupFacet(ActionDomainEventDefaultFacetForDomainObjectAnnotation.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ public CollectionDomainEventFacet(
domainEventHelper = DomainEventHelper.ofServiceRegistry(getServiceRegistry());
}

/**
* Called by meta-model post-processors, to honor domain object annotations on mixees.
* (required only, if this facet belongs to a mixed-in member)
*/
@Override
public void initWithMixee(final ObjectSpecification mixeeSpec) {
mixeeSpec
.lookupFacet(CollectionDomainEventDefaultFacetForDomainObjectAnnotation.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ public PropertyDomainEventFacet(
domainEventHelper = DomainEventHelper.ofServiceRegistry(getServiceRegistry());
}

/**
* Called by meta-model post-processors, to honor domain object annotations on mixees.
* (required only, if this facet belongs to a mixed-in member)
*/
@Override
public void initWithMixee(final ObjectSpecification mixeeSpec) {
mixeeSpec
.lookupFacet(PropertyDomainEventDefaultFacetForDomainObjectAnnotation.class)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit aa3973d

Please sign in to comment.