Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(K) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- add(K) - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Adds the given key to the LRU.
- add(K, V) - Method in class org.jvnet.hk2.component.MultiMap
-
Adds one more key-value pair.
- addMetadata(Map<String, List<String>>, String, String) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Adds a value to the list of values associated with this key
- annotationContainsAll(Set<Annotation>, Set<Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
This is used to check on the annotation set.
- array(Object[]) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Returns a pretty string for the given array
B
- BeanReflectionHelper - Class in org.glassfish.hk2.utilities.reflection
- BeanReflectionHelper() - Constructor for class org.glassfish.hk2.utilities.reflection.BeanReflectionHelper
C
- Cache<K,
V> - Class in org.glassfish.hk2.utilities.cache -
Cache implementation that relies on FutureTask.
- Cache(Computable<K, V>) - Constructor for class org.glassfish.hk2.utilities.cache.Cache
-
Create new cache with given computable to compute values.
- Cache(Computable<K, V>, Cache.CycleHandler<K>) - Constructor for class org.glassfish.hk2.utilities.cache.Cache
-
Create new cache with given computable and cycle handler.
- Cache.CycleHandler<K> - Interface in org.glassfish.hk2.utilities.cache
-
Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.
- CacheEntry - Interface in org.glassfish.hk2.utilities.cache
-
This can be used to remove a specific cache entry from the cache, for better control of the caching release semantics
- CacheKeyFilter<K> - Interface in org.glassfish.hk2.utilities.cache
-
This is used by the cache to remove a series of entries that match this filter
- CacheUtilities - Class in org.glassfish.hk2.utilities.cache
-
Utilities for creating caches
- CacheUtilities() - Constructor for class org.glassfish.hk2.utilities.cache.CacheUtilities
- cast(Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Casts this thing to the given type
- ClassReflectionHelper - Interface in org.glassfish.hk2.utilities.reflection
-
An interface representing useful reflection utilities
- ClassReflectionHelperImpl - Class in org.glassfish.hk2.utilities.reflection.internal
- ClassReflectionHelperImpl() - Constructor for class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- ClassReflectionHelperUtilities - Class in org.glassfish.hk2.utilities.reflection.internal
- ClassReflectionHelperUtilities() - Constructor for class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities
- clazz(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Makes a nice, pretty class (without the package name)
- clean(Class<?>) - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Removes this class (and all appropriate sub-classes) from the cache
- clean(Class<?>) - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- clear() - Method in class org.glassfish.hk2.utilities.cache.Cache
-
Empty cache.
- clear() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- clear() - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Empty the cache.
- clear() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Clears the current cache, making the current size zero
- clear() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- clear() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- clear() - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Sets the clock size back to zero, no entries
- clear() - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Removes all entries from this LRU
- clearStaleReferences() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- clearStaleReferences() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Causes stale references to be cleared from the data structures.
- clearStaleReferences() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- clearStaleReferences() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- clearStaleReferences() - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Causes stale references to be cleared from the data structures.
- clearStaleReferences() - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Causes stale references to be cleared from the data structures.
- clone() - Method in class org.jvnet.hk2.component.MultiMap
-
Creates a copy of the map that contains the exact same key and value set.
- close() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- collection(Collection<?>) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Returns a pretty string representing the collection
- Computable<K,
V> - Interface in org.glassfish.hk2.utilities.cache -
Utility interface to capture generic computation of type V from type K.
- computation - Variable in exception org.glassfish.hk2.utilities.cache.ComputationErrorException
- ComputationErrorException - Exception in org.glassfish.hk2.utilities.cache
-
This exception should be thrown from the
Computable.compute(Object)method if the returned computation should NOT be kept in the cache. - ComputationErrorException() - Constructor for exception org.glassfish.hk2.utilities.cache.ComputationErrorException
- ComputationErrorException(Object) - Constructor for exception org.glassfish.hk2.utilities.cache.ComputationErrorException
- compute(K) - Method in class org.glassfish.hk2.utilities.cache.Cache
- compute(K) - Method in interface org.glassfish.hk2.utilities.cache.Computable
-
Defines an expensive computation to retrieve value V from key K.
- compute(K) - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- compute(K) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
- compute(K) - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
The method used to get or add values to this cache
- Constants - Class in org.glassfish.hk2.utilities.reflection
- Constants() - Constructor for class org.glassfish.hk2.utilities.reflection.Constants
- constructor(Constructor<?>) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Make a nice pretty string out of the constructor and all its parameters
- contains(K) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- contains(K) - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Tells if the given key is in the LRU
- contains(K, V) - Method in class org.jvnet.hk2.component.MultiMap
-
Checks if the map contains the given key(s), also extending the search to including the sub collection.
- containsKey(K) - Method in class org.glassfish.hk2.utilities.cache.Cache
-
Returns true if the key has already been cached.
- containsKey(K) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Returns true if the key has already been cached.
- containsKey(K) - Method in class org.jvnet.hk2.component.MultiMap
-
Checks if the map contains the given key.
- convertJavaBeanToBeanLikeMap(ClassReflectionHelper, Object) - Static method in class org.glassfish.hk2.utilities.reflection.BeanReflectionHelper
-
Converts a Java bean to a bean-like Map
- createCache(int) - Static method in class org.glassfish.hk2.utilities.cache.LRUCache
-
Creates a cache with the given maximum cache size
- createCacheEntry(K, V, boolean) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Create cache entry for given values.
- createMethodWrapper(Method) - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Creates a method wrapper from the given method
- createMethodWrapper(Method) - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- createMethodWrapper(Method) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Creates a method wrapper for the given method
- createWeakCARCache(Computable<K, V>, int, boolean) - Static method in class org.glassfish.hk2.utilities.cache.CacheUtilities
-
Returns a WEAKCarCache with the given computable and the given maximum value size of the cache.
D
- debug(String) - Method in class org.glassfish.hk2.utilities.reflection.Logger
-
Sends this message to the Debug channel (FINER level in JDK parlance)
- debug(String, String, Throwable) - Method in class org.glassfish.hk2.utilities.reflection.Logger
-
Sends this message to the Debug channel (FINER level in JDK parlance)
- debug(String, Throwable) - Method in class org.glassfish.hk2.utilities.reflection.Logger
-
Sends this message to the Debug channel (FINER level in JDK parlance)
- deepCopyMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
This method does a deep copy of the incoming meta-data, (which basically means we will also make copies of the value list)
- DEFAULT_VALIDATION_MESSAGES - Static variable in class org.glassfish.hk2.utilities.general.internal.MessageInterpolatorImpl
-
The name of the default message bundle.
- dispose() - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Releases the entire cache, though the ClassReflectionHelper is still usable after calling dispose
- dispose() - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- DoubleNode<K,
V> - Class in org.glassfish.hk2.utilities.general.internal -
Used for doubly linked lists with weak keys
- DoubleNode(K, V, ReferenceQueue<? super K>) - Constructor for class org.glassfish.hk2.utilities.general.internal.DoubleNode
- dropMe() - Method in interface org.glassfish.hk2.utilities.cache.HybridCacheEntry
-
Tell the cache if this entry should be dropped as opposed to being kept in the cache.
- dumpAllLists() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- dumpAllLists() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns a string that will contain all the elements of the four lists
E
- entrySet() - Method in class org.jvnet.hk2.component.MultiMap
-
Lists up all entries.
- equals(Object) - Method in class org.glassfish.hk2.utilities.general.ThreadSpecificObject
- equals(Object) - Method in class org.glassfish.hk2.utilities.reflection.GenericArrayTypeImpl
- equals(Object) - Method in class org.glassfish.hk2.utilities.reflection.internal.MethodWrapperImpl
- equals(Object) - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
- equals(Object) - Method in class org.jvnet.hk2.component.MultiMap
F
- field(Field) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Returns a pretty string representing a Field
- findPostConstruct(Class<?>, Class<?>) - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Finds the postConstruct method on this class
- findPostConstruct(Class<?>, Class<?>) - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- findPreDestroy(Class<?>, Class<?>) - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Finds the preDestroy method on this class
- findPreDestroy(Class<?>, Class<?>) - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- flush() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
G
- GeneralUtilities - Class in org.glassfish.hk2.utilities.general
-
This class contains utilities useful for any code
- GeneralUtilities() - Constructor for class org.glassfish.hk2.utilities.general.GeneralUtilities
- GenericArrayTypeImpl - Class in org.glassfish.hk2.utilities.reflection
-
An implementation of GenericArrayType for those times we need to create this on the fly
- GenericArrayTypeImpl(Type) - Constructor for class org.glassfish.hk2.utilities.reflection.GenericArrayTypeImpl
-
Creates the GenericArrayType with the given array type
- get() - Method in class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
-
Returns the value in the current thread's copy of this thread-local variable.
- get(K) - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
- get(K) - Method in class org.glassfish.hk2.utilities.cache.LRUCache
-
Returns the value associated with the given key.
- get(K) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- get(K) - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Gets the given key, returning null if not found
- get(K) - Method in class org.jvnet.hk2.component.MultiMap
-
Returns the elements indexed by the provided key
- getActualTypeArguments() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
- getAdvertisedTypesFromClass(Type, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns the set of types this class advertises
- getAdvertisedTypesFromObject(Object, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns the set of types this class advertises
- getAllFields(Class<?>) - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Gets all fields for a class (taking class heirarchy into account)
- getAllFields(Class<?>) - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- getAllMethods(Class<?>) - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Gets all methods for a class (taking class heirarchy into account)
- getAllMethods(Class<?>) - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- getAllTypes(Type) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
- getAnnoType() - Method in class org.glassfish.hk2.utilities.reflection.ScopeInfo
-
Returns the annotation class for this annotation type
- getB1Size() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getB1Size() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the number of items in the B1 LRU
- getB2Size() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getB2Size() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the number of items in the B2 LRU
- getBeanPropertyNameFromGetter(Method) - Static method in class org.glassfish.hk2.utilities.reflection.BeanReflectionHelper
-
Returns the bean version of the property name if the method is a getter, or returns null if the method is not a getter
- getChangeEvents(ClassReflectionHelper, Object, Object) - Static method in class org.glassfish.hk2.utilities.reflection.BeanReflectionHelper
-
Gets the set of change events by comparing two different beans.
- getComputable() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getComputable() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
The computable associated with this cache
- getComputation() - Method in exception org.glassfish.hk2.utilities.cache.ComputationErrorException
- getContractsFromClass(Class<?>, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns the set of types this class advertises
- getFirstTypeArgument(Type) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets the first type argument if this is a parameterized type, otherwise it returns Object.class
- getGenericComponentType() - Method in class org.glassfish.hk2.utilities.reflection.GenericArrayTypeImpl
- getHardenedKey() - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- getHitRate() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getHitRate() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the hit rate from the last time clear was called
- getIncomingObject() - Method in class org.glassfish.hk2.utilities.general.ThreadSpecificObject
-
Gets the incoming object bound to the thread id
- getIndentStep() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
-
Deprecated.Only return the length of the indent string.
- getKeySize() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getKeySize() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the current number of keys in the cache.
- getLogger() - Static method in class org.glassfish.hk2.utilities.reflection.Logger
-
Gets the singleton instance of the Logger
- getMaxCacheSize() - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
- getMaxCacheSize() - Method in class org.glassfish.hk2.utilities.cache.LRUCache
-
Returns the maximum number of entries that will be stored in this cache
- getMaximumCacheSize() - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
- getMaxSize() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getMaxSize() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Gets the current maximum size of the cache (the maximum number of values that will be kept by the cache).
- getMethod() - Method in class org.glassfish.hk2.utilities.reflection.internal.MethodWrapperImpl
- getMethod() - Method in interface org.glassfish.hk2.utilities.reflection.MethodWrapper
-
Returns the method associated with this wrapper
- getName(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns the name that should be associated with this class
- getNameFromAllQualifiers(Set<Annotation>, AnnotatedElement) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets the name from the &46;Named qualifier in this set of qualifiers
- getNamespaceContext() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- getNext() - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- getOne(K) - Method in class org.jvnet.hk2.component.MultiMap
-
Gets the first value if any, or null.
- getOwnerType() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
- getP() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getP() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the value of p from the CAR algorithm, which is the target size of the t1 clock
- getPrefix(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- getPrevious() - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- getProperty(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- getQualifierAnnotations(AnnotatedElement) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets all the qualifier annotations from the object
- getQualifiersFromClass(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets all the qualifiers from the object
- getQualifiersFromObject(Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets all the qualifiers from the object
- getRawClass(Type) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Given the type parameter gets the raw type represented by the type, or null if this has no associated raw class
- getRawType() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
- getScope() - Method in class org.glassfish.hk2.utilities.reflection.ScopeInfo
-
Returns the scope for this data structure
- getScopeAnnotationFromClass(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets the scope annotation from the object
- getScopeAnnotationFromObject(Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets the scope annotation from the object
- getScopeFromClass(Class<?>, Annotation) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets the scope annotation from the object
- getScopeFromObject(Object, Annotation) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Gets the scope annotation from the object
- getSize() - Method in class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
-
Returns the total size of the internal data structure in terms of entries.
- getT1Size() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getT1Size() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the number of items in the T1 clock
- getT2Size() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getT2Size() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the number of items in the T2 clock
- getThreadIdentifier() - Method in class org.glassfish.hk2.utilities.general.ThreadSpecificObject
-
Gets the thread on which this object was created
- getTypeClosure(Type, Set<String>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns the type closure, as restricted by the classes listed in the set of contracts implemented
- getValidator() - Static method in class org.glassfish.hk2.utilities.general.ValidatorUtilities
-
Gets a validator that can be used to validate that is initialized with HK2 specific utilities such as the message interpolator
- getValue() - Method in interface org.glassfish.hk2.utilities.cache.HybridCacheEntry
-
Getter for this cache entry internal value.
- getValue() - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- getValueSize() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- getValueSize() - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Returns the current number of values in the cache.
- getWeakHashClock(boolean) - Static method in class org.glassfish.hk2.utilities.general.GeneralUtilities
-
Creates a weak hash clock
- getWeakHashLRU(boolean) - Static method in class org.glassfish.hk2.utilities.general.GeneralUtilities
-
Creates a weak hash clock
- getWeakKey() - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
H
- handleCycle(K) - Method in interface org.glassfish.hk2.utilities.cache.Cache.CycleHandler
-
Handle cycle that was detected while computing a cache value for given key.
- handleCycle(K) - Method in interface org.glassfish.hk2.utilities.cache.LRUHybridCache.CycleHandler
-
Handle cycle that was detected while computing a cache value for given key.
- hashCode() - Method in class org.glassfish.hk2.utilities.general.ThreadSpecificObject
- hashCode() - Method in class org.glassfish.hk2.utilities.reflection.GenericArrayTypeImpl
- hashCode() - Method in class org.glassfish.hk2.utilities.reflection.internal.MethodWrapperImpl
- hashCode() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
- hashCode() - Method in class org.jvnet.hk2.component.MultiMap
- hasWeakKeys() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- hasWeakKeys() - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Tells if this WeakHashClock has Weak keys
- Hk2ThreadLocal<V> - Class in org.glassfish.hk2.utilities.general
-
This is a poor mans version of a
ThreadLocalwith the one major upside of aHk2ThreadLocal.removeAll()method that can be used to remove ALL instances of all thread locals on ALL threads from any other thread. - Hk2ThreadLocal() - Constructor for class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
- HybridCacheEntry<V> - Interface in org.glassfish.hk2.utilities.cache
-
Represents a single hybrid cache entry.
I
- IndentingXMLStreamWriter - Class in org.glassfish.hk2.utilities.general
- IndentingXMLStreamWriter(XMLStreamWriter) - Constructor for class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- initialValue() - Method in class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
-
Returns the current thread's "initial value" for this thread-local variable.
- interpolate(String, MessageInterpolator.Context) - Method in class org.glassfish.hk2.utilities.general.internal.MessageInterpolatorImpl
- interpolate(String, MessageInterpolator.Context, Locale) - Method in class org.glassfish.hk2.utilities.general.internal.MessageInterpolatorImpl
-
Runs the message interpolation according to algorithm specified in JSR 303.
- invoke(Object, Method, Object[], boolean) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
This version of invoke is CCL neutral (it will return with the same CCL as what it went in with)
- isAnnotationAQualifier(Annotation) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns true if the given annotation is a qualifier
- isPrivate(Member) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns true if the underlying member is private
- isRawTypeSafe(Type, Type) - Static method in class org.glassfish.hk2.utilities.reflection.TypeChecker
-
Returns true if the given requiredType is safely assignable from the given beanType.
- isStatic(Member) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Returns true if the underlying member is static
K
- keySet() - Method in class org.jvnet.hk2.component.MultiMap
-
Returns the set of keys associated with this MultiMap
L
- loadClass(ClassLoader, String) - Static method in class org.glassfish.hk2.utilities.general.GeneralUtilities
-
Loads the class from the given classloader or returns null (does not throw).
- Logger - Class in org.glassfish.hk2.utilities.reflection
-
A logger for HK2.
- LRUCache<K,
V> - Class in org.glassfish.hk2.utilities.cache -
A cache that contains a certain number of entries, and whose oldest accessed entries are removed when removal is necessary.
- LRUCache() - Constructor for class org.glassfish.hk2.utilities.cache.LRUCache
- LRUCacheCheapRead<K,
V> - Class in org.glassfish.hk2.utilities.cache.internal -
LRU Cache implementation that relies on entries that keep last hit (get/put) timestamp in order to be able to remove least recently accessed items when running out of cache capacity.
- LRUCacheCheapRead(int) - Constructor for class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
-
Create new cache with given maximum capacity.
- LRUHybridCache<K,
V> - Class in org.glassfish.hk2.utilities.cache -
Hybrid cache that allows explicit removals of included entries as well as implicit removal of entries that have been least recently accessed.
- LRUHybridCache(int, Computable<K, HybridCacheEntry<V>>) - Constructor for class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Create new cache with given computable to compute values.
- LRUHybridCache(int, Computable<K, HybridCacheEntry<V>>, LRUHybridCache.CycleHandler<K>) - Constructor for class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Create new cache with given computable and cycleHandler.
- LRUHybridCache.CycleHandler<K> - Interface in org.glassfish.hk2.utilities.cache
-
Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.
M
- makeMe(Constructor<?>, Object[], boolean) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
This version of invoke is CCL neutral (it will return with the same CCL as what it went in with)
- matches(K) - Method in interface org.glassfish.hk2.utilities.cache.CacheKeyFilter
-
Returns true if the key matches the filter
- mergeAll(MultiMap<K, V>) - Method in class org.jvnet.hk2.component.MultiMap
-
This method merges all of the keys and values from another MultiMap into this MultiMap.
- MessageInterpolatorImpl - Class in org.glassfish.hk2.utilities.general.internal
-
Custom MessageInterpolatorImpl for HK2
- MessageInterpolatorImpl() - Constructor for class org.glassfish.hk2.utilities.general.internal.MessageInterpolatorImpl
- method(Method) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Makes a nice pretty string of the method, with the method name and all parameters
- MethodWrapper - Interface in org.glassfish.hk2.utilities.reflection
-
Wraps a java.lang.reflect.Method but has an equals and hashCode that honors the class hierarchy
- MethodWrapperImpl - Class in org.glassfish.hk2.utilities.reflection.internal
-
Wrapper of methods with an equals and hashCode that makes methods hiding other methods be equal
- MethodWrapperImpl(Method) - Constructor for class org.glassfish.hk2.utilities.reflection.internal.MethodWrapperImpl
- MultiMap<K,
V> - Class in org.jvnet.hk2.component -
Map from a key to multiple values.
- MultiMap() - Constructor for class org.jvnet.hk2.component.MultiMap
-
Creates an empty multi-map with default concurrency controls
- MultiMap(MultiMap<K, V>) - Constructor for class org.jvnet.hk2.component.MultiMap
-
Copy constructor.
N
- next() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- next() - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Returns the next key/value pair in the clock, or null if the clock has no members.
O
- org.glassfish.hk2.utilities - module org.glassfish.hk2.utilities
- org.glassfish.hk2.utilities.cache - package org.glassfish.hk2.utilities.cache
- org.glassfish.hk2.utilities.cache.internal - package org.glassfish.hk2.utilities.cache.internal
- org.glassfish.hk2.utilities.general - package org.glassfish.hk2.utilities.general
- org.glassfish.hk2.utilities.general.internal - package org.glassfish.hk2.utilities.general.internal
- org.glassfish.hk2.utilities.reflection - package org.glassfish.hk2.utilities.reflection
- org.glassfish.hk2.utilities.reflection.internal - package org.glassfish.hk2.utilities.reflection.internal
- org.jvnet.hk2.component - package org.jvnet.hk2.component
P
- ParameterizedTypeImpl - Class in org.glassfish.hk2.utilities.reflection
- ParameterizedTypeImpl(Type, Type...) - Constructor for class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
-
A new parameterized type
- parseServiceMetadataString(String, Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
This method parses the string that is found in the VService metadata field.
- Pretty - Class in org.glassfish.hk2.utilities.reflection
- Pretty() - Constructor for class org.glassfish.hk2.utilities.reflection.Pretty
- prettyPrintBytes(byte[]) - Static method in class org.glassfish.hk2.utilities.general.GeneralUtilities
-
Pretty prints a string of bytes in a hexadecimal format with byte number at the start of the line
- PRIMITIVE_MAP - Static variable in class org.glassfish.hk2.utilities.reflection.Constants
-
Map from primitive type to java type
- printThrowable(Throwable) - Static method in class org.glassfish.hk2.utilities.reflection.Logger
-
Prints a throwable to stdout
- pType(ParameterizedType) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Prints a pretty parameterized type
- put(K, V) - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
- put(K, V) - Method in class org.glassfish.hk2.utilities.cache.LRUCache
-
Adds the given key and value pair into the cache
- put(K, V) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- put(K, V) - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Adds the given pair to the clock.
R
- readMetadataMap(String, Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Writes a set in a way that can be read from an input stream as well
- readSet(String, Collection<String>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Writes a set in a way that can be read from an input stream as well.
- ReflectionHelper - Class in org.glassfish.hk2.utilities.reflection
- ReflectionHelper() - Constructor for class org.glassfish.hk2.utilities.reflection.ReflectionHelper
- releaseCache() - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
- releaseCache() - Method in class org.glassfish.hk2.utilities.cache.LRUCache
-
Clears all entries in the cache, for use when a known event makes the cache incorrect
- releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
- releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.LRUCache
-
This method will remove all cache entries for which this filter matches
- releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
This method will remove all cache entries for which this filter matches
- releaseMatching(CacheKeyFilter<K>) - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Releases all key/value pairs that match the filter
- releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- releaseMatching(CacheKeyFilter<K>) - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Releases all key/value pairs that match the filter
- releaseMatching(CacheKeyFilter<K>) - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Releases all keys that match the filter
- remove() - Method in class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
-
Removes the current thread's value for this thread-local variable.
- remove() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- remove() - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Removes the key that was Least Recently Used
- remove(K) - Method in class org.glassfish.hk2.utilities.cache.Cache
-
Remove item from the cache.
- remove(K) - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- remove(K) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Remove given item from the cache.
- remove(K) - Method in interface org.glassfish.hk2.utilities.cache.WeakCARCache
-
Used to remove a single key and value from the cache (if the value is available)
- remove(K) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- remove(K) - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- remove(K) - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Removes the given key from the clock, if found
- remove(K) - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Removes the given key from the LRU, if found
- remove(K) - Method in class org.jvnet.hk2.component.MultiMap
-
Removes an key value from the map
- remove(K, V) - Method in class org.jvnet.hk2.component.MultiMap
-
Removes an key value pair from the map.
- removeAll() - Method in class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
-
Removes all threads current thread's value for this thread-local variable.
- removeAllMetadata(Map<String, List<String>>, String) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Removes all the metadata values associated with key
- removeFromCache() - Method in interface org.glassfish.hk2.utilities.cache.CacheEntry
-
Call this method on this entry to remove it from the LRUCache.
- removeMetadata(Map<String, List<String>>, String, String) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Removes the given value from the given key
- resolveField(Class<?>, Field) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Resolves the generic type of a field given the actual class being instantiated
- resolveKnownType(TypeVariable<?>, ParameterizedType, Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
If you have a class that declares type variables (knownDeclaringClass) and the type the user has told us it should be (knownType) then return the replaced type for the given userType.
- resolveMember(Class<?>, Type, Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Resolves the generic type of a type and declaring class given the actual class being instantiated
S
- safeEquals(Object, Object) - Static method in class org.glassfish.hk2.utilities.general.GeneralUtilities
-
Returns true if a is equals to b, or both and and b are null.
- ScopeInfo - Class in org.glassfish.hk2.utilities.reflection
-
Data structure concerning scope annotations
- ScopeInfo(Annotation, Class<? extends Annotation>) - Constructor for class org.glassfish.hk2.utilities.reflection.ScopeInfo
-
Constructor of the data structure concerning the scope annotation
- set(K, Collection<? extends V>) - Method in class org.jvnet.hk2.component.MultiMap
-
Replaces all the existing values associated with the key by the given value.
- set(K, V) - Method in class org.jvnet.hk2.component.MultiMap
-
Replaces all the existing values associated with the key by the given single value.
- set(V) - Method in class org.glassfish.hk2.utilities.general.Hk2ThreadLocal
-
Sets the current thread's copy of this thread-local variable to the specified value.
- setDefaultNamespace(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- setField(Field, Object, Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Sets the given field to the given value
- setHardenedKey(K) - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- setIndentStep(int) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
-
Deprecated.Should use the version that takes string.
- setIndentStep(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- setNamespaceContext(NamespaceContext) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- setNext(DoubleNode<K, V>) - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- setPrefix(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- setPrevious(DoubleNode<K, V>) - Method in class org.glassfish.hk2.utilities.general.internal.DoubleNode
- size() - Method in class org.glassfish.hk2.utilities.cache.Cache
-
Returns the size of the cache
- size() - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
-
Return the size of the cache
- size() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- size() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- size() - Method in interface org.glassfish.hk2.utilities.general.WeakHashClock
-
Returns the number of elements currently in the clock.
- size() - Method in interface org.glassfish.hk2.utilities.general.WeakHashLRU
-
Returns the number of elements currently in the clock.
- size() - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
-
Returns an approximation of the current size of the cache
- size() - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- size() - Method in class org.jvnet.hk2.component.MultiMap
-
Returns the size of the map.
- SYSTEM_LOADER_NAME - Static variable in class org.glassfish.hk2.utilities.reflection.Constants
-
The name of the system class loader
T
- ThreadSpecificObject<T> - Class in org.glassfish.hk2.utilities.general
-
This ties the given object with the thread upon which this object is created This class can be used as the key in a hashSet if the incoming object can be used as the key in a hashSet
- ThreadSpecificObject(T) - Constructor for class org.glassfish.hk2.utilities.general.ThreadSpecificObject
- toCommaSeparatedString() - Method in class org.jvnet.hk2.component.MultiMap
- toString() - Method in class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- toString() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- toString() - Method in class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- toString() - Method in class org.glassfish.hk2.utilities.reflection.GenericArrayTypeImpl
- toString() - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
- toString() - Method in class org.glassfish.hk2.utilities.reflection.internal.MethodWrapperImpl
- toString() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
- toString() - Method in class org.jvnet.hk2.component.MultiMap
- translatePrimitiveType(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Converts the type to its java form, or returns the original
- type(Type) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
-
Returns a pretty string for the given type
- TypeChecker - Class in org.glassfish.hk2.utilities.reflection
-
This class contains various utilities for ensuring java type safety
- TypeChecker() - Constructor for class org.glassfish.hk2.utilities.reflection.TypeChecker
U
- USER_VALIDATION_MESSAGES - Static variable in class org.glassfish.hk2.utilities.general.internal.MessageInterpolatorImpl
-
The name of the user-provided message bundle as defined in the specification.
V
- ValidatorUtilities - Class in org.glassfish.hk2.utilities.general
- ValidatorUtilities() - Constructor for class org.glassfish.hk2.utilities.general.ValidatorUtilities
W
- warning(String) - Method in class org.glassfish.hk2.utilities.reflection.Logger
-
Sends this message to the Debug channel (FINER level in JDK parlance)
- warning(String, Throwable) - Method in class org.glassfish.hk2.utilities.reflection.Logger
-
Sends this message to the Debug channel (FINER level in JDK parlance)
- WeakCARCache<K,
V> - Interface in org.glassfish.hk2.utilities.cache -
A cache that uses the CAR algorithm to remove entries.
- WeakCARCacheImpl<K,
V> - Class in org.glassfish.hk2.utilities.cache.internal -
Implements the CAR algorithm as found here: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.105.6057
- WeakCARCacheImpl(Computable<K, V>, int, boolean) - Constructor for class org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl
- WeakHashClock<K,
V> - Interface in org.glassfish.hk2.utilities.general -
This is a clock (if non-empty the next verb will always return a new value in a cycle) that can also get values in O(1) complexity.
- WeakHashClockImpl<K,
V> - Class in org.glassfish.hk2.utilities.general.internal -
Implementation of WeakHashClock as needed by the CAR algorithm
- WeakHashClockImpl(boolean) - Constructor for class org.glassfish.hk2.utilities.general.internal.WeakHashClockImpl
- WeakHashLRU<K> - Interface in org.glassfish.hk2.utilities.general
- WeakHashLRUImpl<K> - Class in org.glassfish.hk2.utilities.general.internal
-
An implementation of the WeakHashLRU as needed by the CAR algorithm
- WeakHashLRUImpl(boolean) - Constructor for class org.glassfish.hk2.utilities.general.internal.WeakHashLRUImpl
- writeAttribute(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeAttribute(String, String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeAttribute(String, String, String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeCData(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeCharacters(char[], int, int) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeCharacters(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeComment(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeDefaultNamespace(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeDTD(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeEmptyElement(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeEmptyElement(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeEmptyElement(String, String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeEndDocument() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeEndElement() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeEntityRef(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Used to write the metadata out
- writeNamespace(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeProcessingInstruction(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeProcessingInstruction(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeSet(Set<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Writes a set in a way that can be read from an input stream as well
- writeSet(Set<?>, Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
-
Writes a set in a way that can be read from an input stream as well
- writeStartDocument() - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeStartDocument(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeStartDocument(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeStartElement(String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeStartElement(String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
- writeStartElement(String, String, String) - Method in class org.glassfish.hk2.utilities.general.IndentingXMLStreamWriter
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form