Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.service.impl.* (56)

org.apache.hivemind.service: Javadoc index of package org.apache.hivemind.service.


Package Samples:

org.apache.hivemind.service.impl: Definitions of services provided by the hivemind module.  

Classes:

ClassFab: Used when fabricating a new class. Represents a wrapper around the Javassist library. The core concept of Javassist is how method bodies (as well as constructor bodies, etc.) are specified ... as a very Java-like scripting language. The BodyBuilder class is very useful for assembling this method bodies. Details are available at the Javassist home page . Method bodies look largely like Java. References to java classes must be fully qualified. Several special variables are used: $0 first parameter, equivalent to this in Java code (and can't be used when creating a static method) $1, $2, ... actual ...
MethodSignature: A representation of a java.lang.reflect.Method , identifying the name, return type, parameter types and exception types. Actual Method objects are tied to a particular class, and don't compare well with other otherwise identical Methods from other classes or interface; MethodSignatures are distinct from classes and compare well. Because the intended purpose is to compare methods from interfaces (which are always public and abstract) we don't bother to actually track the modifiers. In addition, at this time, MethodSignature does not distinguish between instance and static methods .
BuilderFactory: Implementation of org.apache.hivemind.ServiceImplementationFactory that can instantiate an object and then configure its properties. Some thought has been given to using bytecode generation to create properties for messages, extension point id, and so forth. This is being avoided because it undermines the ability to test service implemenations as POJOs, outside the framework of HiveMind. Instead the service is configured by means of the implementation's constructor and setter methods.
BuilderFacet: Represents one facet of constructing a service implementation instance. A facet is either a property to be set on the constructed instance, or a parameter to the instance class' constructor. Facets are nested properties within BuilderParameter , and are used by BuilderFactory .
LoggingInterceptorFactory: An interceptor factory that adds logging capability to a service. The logging is based upon the Jakarta commons-logging toolkit, which makes it very transportable. The interceptor will log entry to each method and exit from the method (with return value), plus log any exceptions thrown by the method. The logger used is the id of the service , which is not necessarily the name of the implementing class. Logging occurs at the debug level.
BuilderPropertyFacet: Implementation of BuilderFacet that stores a value. This corresponds to the <set> type elements and all constructor parameter elements. The value is not resolved until needed using a specified org.apache.hivemind.schema.Translator .
ThreadLocaleFactory: Specialized factory used to create instances of ThreadLocaleImpl (i.e., service hivemind.ThreadLocale). This is necessary because there isn't a way to inject the Registry's locale into a property. It's also more efficient, and this is a service that will be constructed frequently.
CtClassSource: Wrapper around Javassist's javassist.ClassPool and our own ClassFactoryClassLoader that manages the creation of new instance of javassist.CtClass and converts finished CtClass's into instantiable Classes.
ServicePropertyObjectProvider: org.apache.hivemind.service.ObjectProvider implementation that obtains a named property from a service. This provider is mapped to the prefix "service-property", the service id is seperated from the property name by a colon. Example: service-property:MyService:myProperty
ClassObjectProvider: Implementation of org.apache.hivemind.service.ObjectProvider that interprets the locator as a class name and converts it to a Class object. The namemay be partial; it is interpreted using the contributing module's package name. Mapped to the "class:" prefix.
MethodFabImpl: Implementation of org.apache.hivemind.service.MethodFab , which is returned from org.apache.hivemind.service.ClassFab#addMethod(int, String, Class, Class[], Class[], String) , so that additional exception handlers may be attached to the added method.
HiveMindClassPool: Used to ensure that javassist.ClassPool#appendClassPath(javassist.ClassPath) is invoked with a synchronized lock. Additionally, wraps around a shared ClassFactoryClassLoader .
AbstractFab: Common code for ClassFabImpl and InterfaceFabImpl .
TestClassFab: Tests related to ClassFabImpl , CtClassSource , etc.
BuilderMessagesFacet: BuilderFacet whose value is the org.apache.hivemind.Messages for the module containing the service being constructed.
EventLinkerImpl: Implementation of org.apache.hivemind.service.EventLinker . Will output warnings whenever a consumer can't be registered for at least one event set (which can happen when the consumer does not implement the necessary interfaces).
BuilderClassResolverFacet: BuilderFacet whose value is the org.apache.hivemind.ClassResolver of the contributing module.
BuilderFactoryLogic: Created by BuilderFactory for each service to be created; encapsulates all the direct and indirect parameters used to construct a service.
ObjectTranslator: Implementation of the indirect translator. This translator allows the contributor, not the schema, to define where object values come from, and is fully extensible. Perhaps I'll have an inspiration and find a better name than "indirect".
ServiceObjectProvider: An org.apache.hivemind.service.ObjectProvider that provides access to services. Returns null if the input is null. Deployed with the prefix "service".
ThreadLocalStorage: Provides a service which can temporarily store thread-local data. This is useful in a multithreaded environment, such as a servlet or Tapestry application. ThreadLocalStorage acts like a map around thread local data.
ObjectInstanceObjectProvider: Implementation of org.apache.hivemind.service.ObjectProvider that instantiates a new instance of a class. Mapped to the "instance:" prefix.
ThreadEventNotifierImpl: Implementation of org.apache.hivemind.service.ThreadEventNotifier , available as service hivemind.ThreadEventNotifier .
BuilderServiceIdFacet: BuilderFacet whose value is the service id of the service being constructed.
ConfigurationObjectProvider: Implementation of org.apache.hivemind.service.ObjectProvider mapped to prefix "configuration:" for accessing configurations.

Home | Contact Us | Privacy Policy | Terms of Service