li.strolch.runtime.privilege.TransactedRestrictable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agent Show documentation
Show all versions of agent Show documentation
Strolch Agent which is the runtime for Strolch
The newest version!
package li.strolch.runtime.privilege;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.privilege.model.SimpleRestrictable;
import li.strolch.utils.dbc.DBC;
public class TransactedRestrictable extends SimpleRestrictable {
private final StrolchTransaction tx;
public TransactedRestrictable(StrolchTransaction tx, String name, Object value) {
super(name, value);
DBC.PRE.assertNotNull("tx must not be null", tx);
this.tx = tx;
}
public StrolchTransaction tx() {
return this.tx;
}
}