Package org.codehaus.groovy.util
Class ReferenceBundle
java.lang.Object
org.codehaus.groovy.util.ReferenceBundle
Couples a
ReferenceType with the ReferenceManager responsible for processing it.-
Constructor Summary
ConstructorsConstructorDescriptionReferenceBundle(ReferenceManager manager, ReferenceType type) Creates a reference bundle for the supplied manager and reference type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceBundleReturns the shared hard-reference bundle.Returns the manager associated with this bundle.static ReferenceBundleReturns the shared phantom-reference bundle.static ReferenceBundleReturns the shared soft-reference bundle.getType()Returns the reference kind represented by this bundle.static ReferenceBundleReturns the shared weak-reference bundle.
-
Constructor Details
-
ReferenceBundle
Creates a reference bundle for the supplied manager and reference type.- Parameters:
manager- the manager that processes collected referencestype- the reference kind to create
-
-
Method Details
-
getType
Returns the reference kind represented by this bundle.- Returns:
- the configured reference type
-
getManager
Returns the manager associated with this bundle.- Returns:
- the reference manager
-
getSoftBundle
Returns the shared soft-reference bundle.- Returns:
- the shared soft-reference bundle
-
getWeakBundle
Returns the shared weak-reference bundle.- Returns:
- the shared weak-reference bundle
-
getHardBundle
Returns the shared hard-reference bundle.- Returns:
- the shared hard-reference bundle
-
getPhantomBundle
Returns the shared phantom-reference bundle.- Returns:
- the shared phantom-reference bundle
-