| Home >> All >> org >> apache >> hivemind >> [ lib Javadoc ] |
org.apache.hivemind.lib: Javadoc index of package org.apache.hivemind.lib.
Package Samples:
org.apache.hivemind.lib.chain
org.apache.hivemind.lib.factory
org.apache.hivemind.lib.groovy
org.apache.hivemind.lib.impl
org.apache.hivemind.lib.pipeline
org.apache.hivemind.lib.strategy
org.apache.hivemind.lib.util
Classes:
StrategyRegistry: An implementation of the strategy pattern. The strategy pattern allows new functionality to be assigned to an existing class. As implemented here, this is a smart lookup between a particular class (called the subject class ) and some object instance that can provide the extra functionality (called the strategy ). The implementation of the strategy is not relevant to the StrategyRegistry class. Strategies are registered before they can be used; the registration maps a particular class to a strategy instance. The strategy instance will be used when the subject class matches the registered class, ...
ChainBuilder: Service interface for hivemind.lib.ChainBuilder , a service which can assemble an implementation based on a command interface, and an ordered list of objects implementing that interface (the "commands"). This is an implementation of the Gang of Four Chain Of Command pattern. For each method in the interface, the chain implementation will call the corresponding method on each command object in turn. If any of the command objects return true, then the chain of command stops and the initial method invocation returns true. Otherwise, the chain of command continues to the next command (and will return ...
HiveMindBuilder: The HiveMindBuilder is a groovy markup builder which can be used to define HiveMind module descriptors using a Groovy script. A single Groovy script must only define one module descriptor. The markup in the Groovy script is equivalent to the XML markup for module descriptors. The only difference being that any dashes in element names and attribute names (which would confuse the Groovy parser) are replaced by a camelCase notation. So for example configuration-point becomes configurationPoint in a Groovy script.
StrategyFactory: Implementation of the hivemind.lib.StrategyFactory service that constructs a service where the first parameter of each method is used to selecte a strategy from an org.apache.hivemind.lib.util.StrategyRegistry . The method invocation is then delegated to the strategy instance. The service factory parameter defines a configuration (of StrategyContribution s) that provide the mapping from Java classes (or interfaces) to adapter instances.
BeanFactoryObjectProvider: An org.apache.hivemind.service.ObjectProvider that references a named (or named and initialized) bean from a org.apache.hivemind.lib.BeanFactory . The translator string is of the form: service-id:name[,initializer] . That is, the text after the colon is an initializer passed to BeanFactory.get(String) > BeanFactory.get(String) 55 .
BeanFactory: Service interface for a source of beans of a particular type. Bean instances are retrieved using a locator string which is of the form: name [, initializer ] . That is, an optional initializer is may be specified, separated by a comma. Beans may be cached or not. The hivemind.lib.BeanFactoryBuilder service is used to create services implementing this interface (driven from a configuration).
GroovyModuleDescriptorProvider: This org.apache.hivemind.ModuleDescriptorProvider processes Groovy scripts defining module descriptors. To all Groovy scripts executed by the provider a variable processor will be bound. This variable references the HiveMind GroovyMarkup builder .
RemoteExceptionCoordinator: Coordinates propogation of remote events. Manages a list of RemoteExceptionListener and will perform notifications on demand. This allows objects which cache remote data to discard it after a remote exception. This service is available as .
EJBProxyFactory: An implementation of org.apache.hivemind.ServiceImplementationFactory that can create a proxy to a stateless session EJB. Using this factory, it is easy to create a HiveMind service wrapper around the actual EJB. The parameters for the factory are used to identify the JNDI name of the session EJB's home interface.
GroovyScriptProcessor: This extension of the org.apache.hivemind.parse.XmlResourceProcessor is suitable for processing Groovy scripts and is used internally by GroovyModuleDescriptorProvider .
SpringLookupFactory: Implementation of org.apache.hivemind.ServiceImplementationFactory that doesn't create beans, but instead it looks them up inside a Spring org.springframework.beans.factory.BeanFactory .
TestPipelineAssembler: Tests for the PipelineAssembler and PipelineFactory classes.
TestBeanFactoryImpl: Tests for BeanFactoryImpl and BeanFactoryBuilder .
FilterMethodAnalyzer: Used by PipelineAssembler to analyze service interface methods against filter interface methods to find the position of the extra service parameter (in the filter method).
TestChainBuilder: Tests for ChainBuilderImpl and ChainFactory .
DefaultImplementationBuilder: Builds a default implementation of an interface. The fabricated class has no-op implementions for each method in the interface. Non-void methods return null, false or zero. A cached, shared instance of the empty implementation is kept and will be returned on future invocations.
SpringObjectProvider: Implementation of org.apache.hivemind.service.ObjectProvider mapped to the "spring:" prefix. The locator is the name of a bean inside a Spring BeanFactory. The BeanFactory to be used
ServicePropertyFactory: Factory that dynamically exposes a property of another service. A proxy is constructed that accesses the target service and obtains a property from that. The service interface of the constructed service must match the type of the exposed property.
SpringBeanFactorySource: A service which can acts as a source for a org.springframework.beans.factory.BeanFactory (from which the different kinds of Spring application contexts derive).
SpringBeanParameter: Parameter to SpringLookupFactory , containing a (required) bean name to obtain, and an (optional) bean factory.
BridgeBuilder: Used by the PipelineAssembler class to create bridge classes and to create instances of briddge classes.
StrategyContribution: Provides a mapping of subject class to strategy instance, used by StrategyFactory when building a service.
PlaceholderFactory: Wrapper around org.apache.hivemind.lib.DefaultImplementationBuilder that is used to create default implementations of services.
WonkHolder: Takes the place of a HiveMind service when testing the ServicePropertyFactory .
BeanFactoryContribution: A contribution used with an org.apache.hivemind.lib.BeanFactory to define one class of objects that may be returned from the factory.
| Home | Contact Us | Privacy Policy | Terms of Service |