- Type Parameters:
H- The type of the handles.REF- The type of the objects to which the handles reference to.
- All Known Subinterfaces:
ComponentHandleComposite<H,,REF> HandleDirectory<H,REF>
public interface HandleLookup<H,REF>
Any system in this framework being able to work with handles provides an
implementation of the handle lookup interface. This enables a unified access
to the system wide handles.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanUsed to test if the given handle is known by an implementing system.lookupHandle(H aHandle) Gets the object associated to a given handle.removeHandle(H aHandle) Gets the descriptor for a given handle.
-
Method Details
-
hasHandle
Used to test if the given handle is known by an implementing system.- Parameters:
aHandle- The handle for which to find out if there is any related data.- Returns:
- True if the handle is known.
-
lookupHandle
Gets the object associated to a given handle.- Parameters:
aHandle- The handle for which to get the related data.- Returns:
- The object associated to the given handle.
- Throws:
UnknownHandleRuntimeException- the unknown handle runtime exception
-
removeHandle
Gets the descriptor for a given handle.- Parameters:
aHandle- The handle for which to get the descriptor.- Returns:
- The descriptor for the given handle.
- Throws:
UnknownHandleRuntimeException- the unknown handle runtime exception
-