org.apache.tuscany.sca.core.invocation
Class WireObjectFactory<T>

java.lang.Object
  extended by org.apache.tuscany.sca.core.invocation.WireObjectFactory<T>
All Implemented Interfaces:
ObjectFactory<T>

public class WireObjectFactory<T>
extends java.lang.Object
implements ObjectFactory<T>

Uses a wire to return an object instance


Constructor Summary
WireObjectFactory(java.lang.Class<T> interfaze, RuntimeWire wire, ProxyFactory proxyService)
          Constructor.
 
Method Summary
 T getInstance()
          Return a instance of the type that this factory creates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireObjectFactory

public WireObjectFactory(java.lang.Class<T> interfaze,
                         RuntimeWire wire,
                         ProxyFactory proxyService)
Constructor.

Parameters:
interfaze - the interface to inject on the client
wire - the backing wire
proxyService - the wire service to create the proxy
Throws:
NoMethodForOperationException
Method Detail

getInstance

public T getInstance()
              throws ObjectCreationException
Description copied from interface: ObjectFactory
Return a instance of the type that this factory creates.

Specified by:
getInstance in interface ObjectFactory<T>
Returns:
a instance from this factory
Throws:
ObjectCreationException