Tuscany Core

org.apache.tuscany.core.wire.impl
Class NullWireFactory

java.lang.Object
  extended by org.apache.tuscany.core.wire.impl.NullWireFactory
All Implemented Interfaces:
WireFactory

public class NullWireFactory
extends java.lang.Object
implements WireFactory

Returns an actual implementation instance as opposed to a proxy. Used in cases where proxying may be optimized away.

Version:
$Rev: 379957 $ $Date: 2006-02-22 14:58:24 -0800 (Wed, 22 Feb 2006) $

Constructor Summary
NullWireFactory(java.lang.String componentName, CompositeContext parentContext)
           
 
Method Summary
 void addInterface(java.lang.Class claz)
          Adds an interface type generated proxies implement
 java.lang.Object createProxy()
          Returns a proxy for a service specified by a reference or target
 java.lang.Class getBusinessInterface()
          Returns the primary interface type implemented by generated proxies
 java.lang.Class[] getImplementatedInterfaces()
          Returns an array of all interfaces implemented by generated proxies
 void initialize()
          Prepares the factory.
 void initialize(java.lang.Class businessInterface, WireConfiguration config)
           
 void setBusinessInterface(java.lang.Class interfaze)
          Sets the primary interface type generated proxies implement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullWireFactory

public NullWireFactory(java.lang.String componentName,
                       CompositeContext parentContext)
Method Detail

initialize

public void initialize(java.lang.Class businessInterface,
                       WireConfiguration config)
                throws WireFactoryInitException
Throws:
WireFactoryInitException

createProxy

public java.lang.Object createProxy()
                             throws ProxyCreationException
Description copied from interface: WireFactory
Returns a proxy for a service specified by a reference or target

Specified by:
createProxy in interface WireFactory
Throws:
ProxyCreationException

initialize

public void initialize()
                throws WireFactoryInitException
Description copied from interface: WireFactory
Prepares the factory. This will typically be called at buildSource time, after bridging source- and target-side invocation chains.

Specified by:
initialize in interface WireFactory
Throws:
WireFactoryInitException - if an error is encountered during initialization

setBusinessInterface

public void setBusinessInterface(java.lang.Class interfaze)
Description copied from interface: WireFactory
Sets the primary interface type generated proxies implement

Specified by:
setBusinessInterface in interface WireFactory

getBusinessInterface

public java.lang.Class getBusinessInterface()
Description copied from interface: WireFactory
Returns the primary interface type implemented by generated proxies

Specified by:
getBusinessInterface in interface WireFactory

addInterface

public void addInterface(java.lang.Class claz)
Description copied from interface: WireFactory
Adds an interface type generated proxies implement

Specified by:
addInterface in interface WireFactory

getImplementatedInterfaces

public java.lang.Class[] getImplementatedInterfaces()
Description copied from interface: WireFactory
Returns an array of all interfaces implemented by generated proxies

Specified by:
getImplementatedInterfaces in interface WireFactory

Tuscany Core

-