A B C D E F G H I K L M O P R S T W 

A

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
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
 
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.LRUHybridCache
Empty the cache.
clone() - Method in class org.jvnet.hk2.component.MultiMap
Creates a copy of the map that contains the exact same key and value set.
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.
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.LRUHybridCache
 
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, 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

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)
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)
dispose() - Method in interface org.glassfish.hk2.utilities.reflection.ClassReflectionHelper
Releases the entire cache
dispose() - Method in class org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl
 
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.

E

entrySet() - Method in class org.jvnet.hk2.component.MultiMap
Lists up all entries.
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
 

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
 
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.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
 
getAllFieldWrappers(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
 
getAllMethodWrappers(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
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.
getContractsFromClass(Class<?>, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns the set of types this class advertises
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
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
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
 
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
getSystemProperty(String, String) - Static method in class org.glassfish.hk2.utilities.general.GeneralUtilities
 
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
getValue() - Method in interface org.glassfish.hk2.utilities.cache.HybridCacheEntry
Getter for this cache entry internal value.

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.reflection.internal.MethodWrapperImpl
 
hashCode() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
hashCode() - Method in class org.jvnet.hk2.component.MultiMap
 
HybridCacheEntry<V> - Interface in org.glassfish.hk2.utilities.cache
Represents a single hybrid cache entry.

I

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

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.
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.

O

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.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
 
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

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.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
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.LRUHybridCache
Remove given item from the cache.
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.
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

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.
setField(Field, Object, Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Sets the given field to the given value
size() - Method in class org.glassfish.hk2.utilities.cache.Cache
Returns the size of the cache
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

toCommaSeparatedString() - Method in class org.jvnet.hk2.component.MultiMap
 
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
 

W

warning(String) - Method in class org.glassfish.hk2.utilities.reflection.Logger
Sends this message to the Debug channel (FINER level in JDK parlance)
writeMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Used to write the metadata out
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
A B C D E F G H I K L M O P R S T W 

Copyright © 2009-2014 Oracle Corporation. All Rights Reserved.