Record Class Resource<T>

java.lang.Object
java.lang.Record
com.marginallyclever.ro3.factories.Resource<T>
Type Parameters:
T - the type of item being managed.

public record Resource<T>(T item, Lifetime lifetime) extends Record
A Resource is a wrapper around something that is managed by a factory. It includes the item itself and its lifetime.