org.obligate.annotations.contract.proxy
Class FactoryImplementationHelper<ServiceInterface>

java.lang.Object
  extended by org.obligate.annotations.contract.proxy.ImplementationHelper<ServiceInterface>
      extended by org.obligate.annotations.contract.proxy.FactoryImplementationHelper<ServiceInterface>

public class FactoryImplementationHelper<ServiceInterface>
extends ImplementationHelper<ServiceInterface>

This factory implementation assumes a static implementation of the factory method.

Since:
23-Jan-2006
Author:
Steve Jones

Constructor Summary
FactoryImplementationHelper(java.lang.Class<ServiceInterface> interfaceClass, java.lang.reflect.Method factoryMethod)
           
 
Method Summary
 ServiceInterface newInstance()
          Creates a new proxy instance for this helper
 
Methods inherited from class org.obligate.annotations.contract.proxy.ImplementationHelper
isRulesInitialised, setRulesInitialised
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryImplementationHelper

public FactoryImplementationHelper(java.lang.Class<ServiceInterface> interfaceClass,
                                   java.lang.reflect.Method factoryMethod)
Method Detail

newInstance

public ServiceInterface newInstance()
                             throws java.lang.Exception
Description copied from class: ImplementationHelper
Creates a new proxy instance for this helper

Specified by:
newInstance in class ImplementationHelper<ServiceInterface>
Returns:
the new proxy instance
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.Exception
See Also:
ImplementationHelper.newInstance()