org.apache.hivemind.service.impl
Class ThreadLocaleFactory

java.lang.Object
  extended by org.apache.hivemind.service.impl.ThreadLocaleFactory
All Implemented Interfaces:
ServiceImplementationFactory

public class ThreadLocaleFactory
extends java.lang.Object
implements ServiceImplementationFactory

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.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ThreadLocaleFactory()
           
 
Method Summary
 java.lang.Object createCoreServiceImplementation(ServiceImplementationFactoryParameters factoryParameters)
          Creates a core implementation object for a particular service extension point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocaleFactory

public ThreadLocaleFactory()
Method Detail

createCoreServiceImplementation

public java.lang.Object createCoreServiceImplementation(ServiceImplementationFactoryParameters factoryParameters)
Description copied from interface: ServiceImplementationFactory
Creates a core implementation object for a particular service extension point. Typically, the factory creates an instance and modifies it to implement the necessary interface (in much the same way that an ServiceInterceptorFactory would). Incompatible change from 1.0: A long list of individual parameters have been collapsed down into the factoryParameters.

Specified by:
createCoreServiceImplementation in interface ServiceImplementationFactory
Parameters:
factoryParameters - provides the information about the service necessary to construct the service.