org.apache.commons.discovery.tools |
|
Java Source File Name | Type | Comment |
ClassUtils.java | Class | author: Richard A. |
DefaultClassHolder.java | Class | Holder for a default class.
Class may be specified by name (String) or class (Class).
Using the holder complicates the users job, but minimized # of API's.
author: Richard A. |
DiscoverClass.java | Class | Discover class that implements a given service interface,
with discovery and configuration features similar to that employed
by standard Java APIs such as JAXP.
In the context of this package, a service interface is defined by a
Service Provider Interface (SPI). |
DiscoverSingleton.java | Class | Discover singleton service providers.
This
DiscoverSingleton instances are cached by the Discovery service,
keyed by a combination of
- thread context class loader,
- groupContext, and
- SPI.
This DOES allow multiple instances of a given singleton class
to exist for different class loaders and different group contexts.
In the context of this package, a service interface is defined by a
Service Provider Interface (SPI). |
EnvironmentCache.java | Class | Cache by a 'key' unique to the environment:
- ClassLoader::groupContext::Object Cache
Cache : HashMap
Key : Thread Context Class Loader (ClassLoader )
Value : groupContext::SPI Cache (HashMap )
//- groupContext::Object Cache
// Cache : HashMap
// Key : groupContext (String )
// Value : Object
When we 'release', it is expected that the caller of the 'release'
have the same thread context class loader... |
ManagedProperties.java | Class | This class may disappear in the future, or be moved to another project..
Extend the concept of System properties to a hierarchical scheme
based around class loaders. |
PropertiesHolder.java | Class | Holder for a default class.
Class may be specified by name (String) or class (Class).
Using the holder complicates the users job, but minimized # of API's.
author: Richard A. |
ResourceUtils.java | Class | Mechanisms to locate and load a class.
The load methods locate a class only.
The find methods locate a class and verify that the
class implements an given interface or extends a given class.
author: Richard A. |
Service.java | Class | [this was ServiceDiscovery12... |
SPInterface.java | Class | Represents a Service Programming Interface (spi).
- SPI's name
- SPI's (provider) class
- SPI's (alternate) override property name
In addition, while there are many cases where this is NOT
usefull, for those in which it is:
- expected constructor argument types and parameters values.
author: Richard A. |