net.sourceforge.hiveutils.service.impl
Class AdapterBuilderFactory

java.lang.Object
  extended by net.sourceforge.hiveutils.service.impl.AdapterBuilderFactory
All Implemented Interfaces:
org.apache.hivemind.ServiceImplementationFactory

public class AdapterBuilderFactory
extends java.lang.Object
implements org.apache.hivemind.ServiceImplementationFactory

Service Factory that wraps an implementation class in a proxy object that will filter or convert exceptions thrown by its methods.

As a matter of fact, such a factory also enables to make a POJO service implementation, with no service interface, usable by Hivemind, by just creating an interface with all public methods of the POJO, and an empty ExceptionMapper.

Author:
Jean-Francois Poilpret

Constructor Summary
AdapterBuilderFactory()
           
 
Method Summary
 java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterBuilderFactory

public AdapterBuilderFactory()
Method Detail

createCoreServiceImplementation

public java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParams)
Specified by:
createCoreServiceImplementation in interface org.apache.hivemind.ServiceImplementationFactory