Skip to content

Commit

Permalink
Merge pull request #138 from phillipross/topic/fix/DELTASPIKE-1468
Browse files Browse the repository at this point in the history
add explicit dependent scope to PrincipalProvider and TimestampsProvider beans
  • Loading branch information
tandraschko authored Jan 11, 2024
2 parents 9fc5755 + 2994dde commit e7357d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.Set;
import java.util.logging.Level;

import jakarta.enterprise.context.Dependent;
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.inject.Inject;
Expand All @@ -31,6 +32,7 @@
import org.apache.deltaspike.data.api.audit.ModifiedBy;
import org.apache.deltaspike.data.impl.property.Property;

@Dependent
class PrincipalProvider extends AuditProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
import java.util.Date;
import java.util.logging.Level;

import jakarta.enterprise.context.Dependent;
import org.apache.deltaspike.data.api.audit.CreatedOn;
import org.apache.deltaspike.data.api.audit.ModifiedOn;
import org.apache.deltaspike.data.impl.property.Property;

/**
* Set timestamps on marked properties.
*/
@Dependent
class TimestampsProvider extends AuditProvider
{

Expand Down

0 comments on commit e7357d1

Please sign in to comment.