Package org.jboss.modules.ref
Class StrongReference<T,A>
java.lang.Object
org.jboss.modules.ref.StrongReference<T,A>
- Type Parameters:
T
- the reference value typeA
- the attachment type
- All Implemented Interfaces:
Reference<T,
A>
A strong reference with an attachment. Since strong references are always reachable, a reaper may not be used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.modules.ref.Reference
Reference.Type
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
attachment
-
-
Constructor Details
-
StrongReference
-
StrongReference
-
-
Method Details
-
get
Description copied from interface:Reference
Get the value, ornull
if the reference has been cleared. -
clear
public void clear()Description copied from interface:Reference
Clear the reference. -
getAttachment
Description copied from interface:Reference
Get the attachment, if any.- Specified by:
getAttachment
in interfaceReference<T,
A> - Returns:
- the attachment
-
getType
Description copied from interface:Reference
Get the type of the reference. -
toString
-