Class ManageableInstance

java.lang.Object
com.janeirodigital.shapetrees.core.resources.ManageableInstance

public class ManageableInstance extends Object
A ManageableInstance represents a pairing of a shape tree ManagerResource and a ManageableResource. The ManageableInstance may represent a managed state, where the ManageableResource is a ManagedResource that is managed by one or more shape trees assigned by the ShapeTreeManager in the ManagedResource.Conversely, it could represent an unmanaged state, where the ManageableResource is an UnmanagedResource and the ManagedResource is a MissingManagedResource. Lastly, it may represent other state combinations where one or both of the ManageableResource or ManagedResource are missing. Both ManageableResource and ManagedResource are looked up and loaded upon construction of the ManageableInstance, which should be done through a ResourceAccessor. Once constructed, the ManageableInstance is immutable.