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

A

AbstractResource - Class in org.spicefactory.lib.resource
Abstract base class for all Resource implementations.
AbstractResource(String) - Constructor for class org.spicefactory.lib.resource.AbstractResource
Creates a new instance for the given path.
AbstractSequenceConverter<T> - Class in org.spicefactory.lib.reflect.convert
Abstract Converter implementation for converting "sequences".
AbstractSequenceConverter(ReflectionFactory) - Constructor for class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
 
add(Class<?>, T) - Method in class org.spicefactory.lib.reflect.util.ClassMappedRepository
Adds the given item and associates it with the given class and all its subclasses or subinterfaces.
addConverter(Converter<?>) - Method in class org.spicefactory.lib.reflect.ReflectionFactory
Adds the given Converter instance to the repository.
addElement(T, Object, int) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
Adds the given element to the sequence (Array or Collection) at the specified index.
addElement(Object, Object, int) - Method in class org.spicefactory.lib.reflect.convert.ArrayConverter
 
addElement(Collection, Object, int) - Method in class org.spicefactory.lib.reflect.convert.CollectionConverter
 
addSchema(Resource) - Method in class org.spicefactory.lib.xml.SchemaValidatingXomBuilderFactory
Adds the given Resource to load an XML Schema from
ArrayConverter - Class in org.spicefactory.lib.reflect.convert
Converter implementation that creates Arrays of the required target type from any sequence (Collection or Array).
ArrayConverter(ReflectionFactory) - Constructor for class org.spicefactory.lib.reflect.convert.ArrayConverter
 

B

Bean - Class in org.spicefactory.lib.reflect
Represents a target bean and provides information on its properties.
ByteArrayResource - Class in org.spicefactory.lib.resource
Resource implementation that wraps a byte array.
ByteArrayResource(byte[]) - Constructor for class org.spicefactory.lib.resource.ByteArrayResource
Creates a new resource instance wrapping the specified byte array.
ByteArrayResource(byte[], String) - Constructor for class org.spicefactory.lib.resource.ByteArrayResource
Creates a new resource instance wrapping the specified byte array.

C

Cache<K,V> - Class in org.spicefactory.lib.reflect.util
Cache implementation optimized for concurrent access to objects which are expensive to create.
Cache(Cache.Factory<K, V>) - Constructor for class org.spicefactory.lib.reflect.util.Cache
Creates a new Cache instance.
Cache.Factory<K,V> - Interface in org.spicefactory.lib.reflect.util
A Factory is used by cache instances to create objects whenever there is a request for a key for which no instance has been created yet.
CacheException - Exception in org.spicefactory.lib.reflect.util
Exception thrown when retrieving objects from a Cache instance fails, usually due to a Factory method that threw an Exception.
CacheException(String) - Constructor for exception org.spicefactory.lib.reflect.util.CacheException
Creates a new CacheException.
CacheException(String, Throwable) - Constructor for exception org.spicefactory.lib.reflect.util.CacheException
Creates a new CacheException.
ClassLoadingException - Exception in org.spicefactory.lib.reflect.util
Exception thrown when loading a Class fails.
ClassLoadingException(String, String, Throwable) - Constructor for exception org.spicefactory.lib.reflect.util.ClassLoadingException
Creates a new ClassLoadingException.
ClassLoadingException(String, String) - Constructor for exception org.spicefactory.lib.reflect.util.ClassLoadingException
Creates a new ClassLoadingException.
ClassMappedRepository<T> - Class in org.spicefactory.lib.reflect.util
Respository for objects that are associated with a certain Java class.
ClassMappedRepository() - Constructor for class org.spicefactory.lib.reflect.util.ClassMappedRepository
 
ClassPathResource - Class in org.spicefactory.lib.resource
Resource implementation for class path resources.
ClassPathResource(String) - Constructor for class org.spicefactory.lib.resource.ClassPathResource
Creates a new ClassPathResource for the given path using the thread context ClassLoader.
ClassPathResource(String, ClassLoader) - Constructor for class org.spicefactory.lib.resource.ClassPathResource
Creates a new ClassPathResource for the given path using the specified ClassLoader.
ClassPathResource(String, Class<?>) - Constructor for class org.spicefactory.lib.resource.ClassPathResource
Creates a new ClassPathResource for the given path using the specified Class to load the resource.
ClassUtil - Class in org.spicefactory.lib.reflect.util
Static utility methods for loading classes and reflectively creating new instances.
ClassUtil() - Constructor for class org.spicefactory.lib.reflect.util.ClassUtil
 
CollectionConverter - Class in org.spicefactory.lib.reflect.convert
Converter implementation that creates Collection instances of the required target type from any sequence (Collection or Array).
CollectionConverter(ReflectionFactory) - Constructor for class org.spicefactory.lib.reflect.convert.CollectionConverter
 
ConversionException - Exception in org.spicefactory.lib.reflect
Exception thrown when type conversion fails.
ConversionException(Object, Type) - Constructor for exception org.spicefactory.lib.reflect.ConversionException
Creates a new ConversionException
ConversionException(Object, Type, Throwable) - Constructor for exception org.spicefactory.lib.reflect.ConversionException
Creates a new ConversionException
ConversionException(Object, Type, String) - Constructor for exception org.spicefactory.lib.reflect.ConversionException
Creates a new ConversionException
ConversionException(Object, Type, String, Throwable) - Constructor for exception org.spicefactory.lib.reflect.ConversionException
Creates a new ConversionException
convert(Object, TypeContext) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
 
convert(Object, TypeContext) - Method in class org.spicefactory.lib.reflect.convert.EnumConverter
 
convert(Object, TypeContext) - Method in class org.spicefactory.lib.reflect.convert.NumberConverter
 
convert(Object, TypeContext) - Method in interface org.spicefactory.lib.reflect.Converter
Converts the given value to the target type of this converter.
convert(Object) - Method in class org.spicefactory.lib.reflect.Property
Converts the specified value to the target type of this Property if possible.
convert(Object) - Method in class org.spicefactory.lib.reflect.TypeContext
Converts (if necessary) the given object to an instance of the target type of this TypeContext.
Converter<T> - Interface in org.spicefactory.lib.reflect
Interface to be implemented by objects responsible for any necessary type conversion.
create(K) - Method in interface org.spicefactory.lib.reflect.util.Cache.Factory
Creates the corresponding object for the specified key.
createBuilder() - Method in class org.spicefactory.lib.xml.SchemaValidatingXomBuilderFactory
Creates a new XOM Builder instance.
createInstance(TypeContext, int, Object) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
Create a new instance for the required target type.
createInstance(TypeContext, int, Object) - Method in class org.spicefactory.lib.reflect.convert.ArrayConverter
 
createInstance(TypeContext, int, Object) - Method in class org.spicefactory.lib.reflect.convert.CollectionConverter
 

E

EnumConverter - Class in org.spicefactory.lib.reflect.convert
Converter implementation for converting Enum types.
EnumConverter() - Constructor for class org.spicefactory.lib.reflect.convert.EnumConverter
 

F

FileSystemResource - Class in org.spicefactory.lib.resource
Resource implementation for file system resources.
FileSystemResource(String) - Constructor for class org.spicefactory.lib.resource.FileSystemResource
Creates a new file system resource for the given path.

G

GenericsUtil - Class in org.spicefactory.lib.reflect.util
Static utility methods dealing with reflection on generic types.
GenericsUtil() - Constructor for class org.spicefactory.lib.reflect.util.GenericsUtil
 
get(K) - Method in class org.spicefactory.lib.reflect.util.Cache
Returns the object for the specified key.
get(Class<?>) - Method in class org.spicefactory.lib.reflect.util.ClassMappedRepository
Returns the item associated with the given type.
getAll() - Method in class org.spicefactory.lib.reflect.util.ClassMappedRepository
Returns a Set of all items that were added to this repository.
getAnnotation(Class<A>) - Method in class org.spicefactory.lib.reflect.Property
Returns the Annotation for the specified type if present on the getter or setter method of this property, otherwise null.
getAnnotations() - Method in class org.spicefactory.lib.reflect.Property
Returns all Annotations present on either the getter or setter method of this Property.
getBaseType() - Method in class org.spicefactory.lib.reflect.TypeContext
Returns the base type for this TypeContext.
getBean() - Method in class org.spicefactory.lib.reflect.Property
Deprecated. 
getBean(Class<?>) - Method in class org.spicefactory.lib.reflect.ReflectionFactory
Returns the Bean instance representing the given Class.
getClassname() - Method in exception org.spicefactory.lib.reflect.util.ClassLoadingException
Returns the name of the Class that could not be loaded.
getConverter(Class<?>) - Method in class org.spicefactory.lib.reflect.ReflectionFactory
Returns the Converter instance that is applicable to the given target type.
getConverters() - Method in class org.spicefactory.lib.reflect.ReflectionFactory
Returns all Converter instances registered with this factory including the builtin ones.
getElementType(TypeContext) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
Return the generic element type of the sequence (Array or Collection).
getElementType(TypeContext) - Method in class org.spicefactory.lib.reflect.convert.ArrayConverter
 
getElementType(TypeContext) - Method in class org.spicefactory.lib.reflect.convert.CollectionConverter
 
getGenericTargetType() - Method in exception org.spicefactory.lib.reflect.ConversionException
Returns the generic target type of the failed conversion.
getGenericTargetType() - Method in class org.spicefactory.lib.reflect.TypeContext
Returns the generic target type for this TypeContext.
getGenericType() - Method in class org.spicefactory.lib.reflect.Property
Returns the resolved generic type of this property.
getInputStream() - Method in class org.spicefactory.lib.resource.ByteArrayResource
 
getInputStream() - Method in class org.spicefactory.lib.resource.ClassPathResource
 
getInputStream() - Method in class org.spicefactory.lib.resource.FileSystemResource
 
getInputStream() - Method in class org.spicefactory.lib.resource.HttpResource
 
getInputStream() - Method in interface org.spicefactory.lib.resource.Resource
Creates an InputStream for this Resource.
getInputStream() - Method in class org.spicefactory.lib.resource.WebAppResource
 
getIterator(Object) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
Return an Iterator for the given sequence (Array or Collection).
getMethod() - Method in class org.spicefactory.lib.reflect.MethodInvoker
Returns the Method that this MethodInvoker wraps.
getMethodInvoker(Method, Class<?>) - Method in class org.spicefactory.lib.reflect.ReflectionFactory
Returns a MethodInvoker instance for the given Method and context Class.
getName() - Method in class org.spicefactory.lib.reflect.Property
The name of the property according to Java Bean conventions.
getOwnerBean() - Method in class org.spicefactory.lib.reflect.Property
Returns the owner Bean instance this Property belongs to.
getParameterCount() - Method in class org.spicefactory.lib.reflect.MethodInvoker
Returns the number of parameters this MethodInvoker expects.
getPath() - Method in class org.spicefactory.lib.resource.AbstractResource
 
getPath() - Method in interface org.spicefactory.lib.resource.Resource
Returns the path for this resource.
getProperties() - Method in class org.spicefactory.lib.reflect.Bean
Returns a Map of all Properties of this Bean.
getProperty(String) - Method in class org.spicefactory.lib.reflect.Bean
Returns the Property instance for the given property name.
getProperty() - Method in exception org.spicefactory.lib.reflect.PropertyException
Returns the affected Property instance.
getRank(Object[]) - Method in class org.spicefactory.lib.reflect.MethodInvoker
Returns a numeric rank for the given method parameters.
getRawTargetType() - Method in exception org.spicefactory.lib.reflect.ConversionException
Returns the raw target type of the failed conversion.
getRawTargetType() - Method in class org.spicefactory.lib.reflect.TypeContext
Returns the raw target type for this TypeContext.
getRawType() - Method in class org.spicefactory.lib.reflect.Property
The resolved raw type of this property.
getRawType(Type) - Static method in class org.spicefactory.lib.reflect.util.GenericsUtil
Returns the raw type of the given generic type.
getReadableProperties() - Method in class org.spicefactory.lib.reflect.Bean
Returns a Map containing all readable properties of this Bean.
getResource() - Method in exception org.spicefactory.lib.resource.ResourceException
Returns the Resource instance that caused the error.
getSize(Object) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
 
getType() - Method in class org.spicefactory.lib.reflect.Bean
Returns the class of the bean.
getType() - Method in exception org.spicefactory.lib.reflect.util.ObjectInstantiationException
Returns the Class for which instantiation failed.
getTypeAsBean() - Method in class org.spicefactory.lib.reflect.Property
The type of this property as a Bean instance.
getTypeContext(Type, Class<?>) - Method in class org.spicefactory.lib.reflect.ReflectionFactory
Returns a TypeContext for the given context and base types.
getValue() - Method in exception org.spicefactory.lib.reflect.ConversionException
Returns the original value that cannot be converted to the target type.
getValue(Object) - Method in class org.spicefactory.lib.reflect.Property
Returns the value of this property in the given bean instance.
getWritableProperties() - Method in class org.spicefactory.lib.reflect.Bean
Returns a Map containing all writable properties of this Bean.

H

HttpResource - Class in org.spicefactory.lib.resource
Resource implementation that loads a resource via HTTP.
HttpResource(String) - Constructor for class org.spicefactory.lib.resource.HttpResource
Creates a new HTTP resource for the given url.

I

invoke(Object, Object[]) - Method in class org.spicefactory.lib.reflect.MethodInvoker
Invokes this method on the given target instance.
isAnnotationPresent(Class<? extends Annotation>) - Method in class org.spicefactory.lib.reflect.Property
Returns true if an annotation for the specified type is present on either the getter or setter method of this Property (or both).
isAssignableType(Object) - Method in class org.spicefactory.lib.reflect.TypeContext
Checks if the given object is an instance of the target type of this TypeContext instance.
isConvertibleType(Object) - Method in class org.spicefactory.lib.reflect.TypeContext
Checks if the given object can be converted (if necessary) to an instance of the target type of this TypeContext.
isEqualType(Object) - Method in class org.spicefactory.lib.reflect.TypeContext
Checks if the class of the given object equals the raw target type of this TypeContext.
isReadable() - Method in class org.spicefactory.lib.reflect.Property
Checks if this property is readable.
isWritable() - Method in class org.spicefactory.lib.reflect.Property
Checks if this property is writable.

L

loadClass(String, boolean, boolean) - Static method in class org.spicefactory.lib.reflect.util.ClassUtil
Loads the given Class using the context ClassLoader of the current thread.
loadClass(String) - Static method in class org.spicefactory.lib.reflect.util.ClassUtil
Loads the given Class using the context ClassLoader of the current thread.
loadClass(String, Class<T>) - Static method in class org.spicefactory.lib.reflect.util.ClassUtil
Loads the given Class if it is of the specified required type.

M

MethodInvocationException - Exception in org.spicefactory.lib.reflect
Exception thrown when a MethodInvocation fails.
MethodInvocationException(String, Throwable) - Constructor for exception org.spicefactory.lib.reflect.MethodInvocationException
Creates a new MethodInvocationException.
MethodInvocationException(String) - Constructor for exception org.spicefactory.lib.reflect.MethodInvocationException
Creates a new MethodInvocationException.
MethodInvoker - Class in org.spicefactory.lib.reflect
MethodInvoker instances allow the reflective invocation of Methods with automatic parameter conversion.

N

newInstance(Class<T>) - Static method in class org.spicefactory.lib.reflect.util.ClassUtil
Creates a new instance of the given Class.
nullSafeEquals(Object, Object) - Static method in class org.spicefactory.lib.util.ObjectUtil
Compares two objects and returns true if the specified objects are equal or both objects are null.
NumberConverter - Class in org.spicefactory.lib.reflect.convert
Converter implementation for converting number types.
NumberConverter() - Constructor for class org.spicefactory.lib.reflect.convert.NumberConverter
 

O

ObjectInstantiationException - Exception in org.spicefactory.lib.reflect.util
Exception thrown when reflectively creating a new instance fails.
ObjectInstantiationException(Class<?>, Throwable) - Constructor for exception org.spicefactory.lib.reflect.util.ObjectInstantiationException
Creates a new ObjectInstantiationException
ObjectInstantiationException(Class<?>) - Constructor for exception org.spicefactory.lib.reflect.util.ObjectInstantiationException
Creates a new ObjectInstantiationException
ObjectUtil - Class in org.spicefactory.lib.util
Utility methods for working with objects.
ObjectUtil() - Constructor for class org.spicefactory.lib.util.ObjectUtil
 
org.spicefactory.lib.reflect - package org.spicefactory.lib.reflect
Reflection Library (Bean Properties, Method Invocation) that properly supports Generics.
org.spicefactory.lib.reflect.convert - package org.spicefactory.lib.reflect.convert
Several Converter implementations.
org.spicefactory.lib.reflect.util - package org.spicefactory.lib.reflect.util
Reflection Utilities.
org.spicefactory.lib.resource - package org.spicefactory.lib.resource
I/O Abstraction for resources (files, byte arrays, HTTP resources).
org.spicefactory.lib.util - package org.spicefactory.lib.util
Miscellaneous utility classes.
org.spicefactory.lib.xml - package org.spicefactory.lib.xml
Utilities for XML parsing.

P

ParserInitializationException - Exception in org.spicefactory.lib.xml
Exception thrown when an XML parser initialization fails.
ParserInitializationException(String, Throwable) - Constructor for exception org.spicefactory.lib.xml.ParserInitializationException
Creates a new ParserInitializationException
ParserInitializationException(String) - Constructor for exception org.spicefactory.lib.xml.ParserInitializationException
Creates a new ParserInitializationException
Property - Class in org.spicefactory.lib.reflect
Represents a single Property of a Bean.
PropertyException - Exception in org.spicefactory.lib.reflect
Exception thrown when reading from or writing to a Bean Property fails.
PropertyException(Property, String, Throwable) - Constructor for exception org.spicefactory.lib.reflect.PropertyException
Creates a new PropertyException
PropertyException(Property, String) - Constructor for exception org.spicefactory.lib.reflect.PropertyException
Creates a new PropertyException

R

ReflectionFactory - Class in org.spicefactory.lib.reflect
The ReflectionFactory is the central factory for the Spicelib reflection package.
ReflectionFactory() - Constructor for class org.spicefactory.lib.reflect.ReflectionFactory
Creates a new ReflectionFactory.
resolve(Type) - Method in class org.spicefactory.lib.reflect.TypeContext
Resolves all TypeVariables contained in the given Type from the perspective of the target type of this TypeVariable.
resolveTypeVariable(String) - Method in class org.spicefactory.lib.reflect.TypeContext
Resolves the specified TypeVariable of the base type of this TypeContext from the perspective of the target type.
resolveTypeVariable(int) - Method in class org.spicefactory.lib.reflect.TypeContext
Resolves the TypeVariable at the given index of the base type declaration of this TypeContext from the perspective of the target type.
Resource - Interface in org.spicefactory.lib.resource
Interface that serves as an abstraction for different resources like files or class path resources.
ResourceException - Exception in org.spicefactory.lib.resource
Exception thrown when an error reading from a resource occurs.
ResourceException(Resource, String, Throwable) - Constructor for exception org.spicefactory.lib.resource.ResourceException
Creates a new ResourceException.
ResourceException(Resource, String) - Constructor for exception org.spicefactory.lib.resource.ResourceException
Creates a new ResourceException.

S

SchemaValidatingXomBuilderFactory - Class in org.spicefactory.lib.xml
A Factory that creates XOM Builder instances that optionally load, cache and reuse one or more XML Schema instances.
SchemaValidatingXomBuilderFactory() - Constructor for class org.spicefactory.lib.xml.SchemaValidatingXomBuilderFactory
Creates a new factory instance.
setPassword(String) - Method in class org.spicefactory.lib.resource.HttpResource
Sets an optional password if authentication is required to load the resource.
setUsername(String) - Method in class org.spicefactory.lib.resource.HttpResource
Sets an optional username if authentication is required to load the resource.
setValue(Object, Object) - Method in class org.spicefactory.lib.reflect.Property
Set the value of this property on the given bean instance.
supports(Class<?>) - Method in class org.spicefactory.lib.reflect.convert.AbstractSequenceConverter
 
supports(Class<?>) - Method in class org.spicefactory.lib.reflect.convert.EnumConverter
 
supports(Class<?>) - Method in class org.spicefactory.lib.reflect.convert.NumberConverter
 
supports(Class<?>) - Method in interface org.spicefactory.lib.reflect.Converter
Checks if this converter can convert instances of the given class to the target type of this converter.

T

toString() - Method in class org.spicefactory.lib.reflect.Property
 
TypeContext - Class in org.spicefactory.lib.reflect
A TypeContext instance reflects on a given supertype from the perspective of a subtype.

W

WebAppResource - Class in org.spicefactory.lib.resource
Resource implementation that uses the ServletContext of a web application to load the resource.
WebAppResource(String, ServletContext) - Constructor for class org.spicefactory.lib.resource.WebAppResource
Creates a new web application resource for the given path and ServletContext.

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