Skip to content

Commit

Permalink
add explicit dependent scope to PrincipalProvider and TimestampsProvi…
Browse files Browse the repository at this point in the history
…der beans
  • Loading branch information
phillipross committed Jan 10, 2024
1 parent 9450ec1 commit 2994dde
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 2994dde

Please sign in to comment.