|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.core.wire.impl.NullWireFactory
public class NullWireFactory
Returns an actual implementation instance as opposed to a proxy. Used in cases where proxying may be optimized away.
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 |
---|
public NullWireFactory(java.lang.String componentName, CompositeContext parentContext)
Method Detail |
---|
public void initialize(java.lang.Class businessInterface, WireConfiguration config) throws WireFactoryInitException
WireFactoryInitException
public java.lang.Object createProxy() throws ProxyCreationException
WireFactory
createProxy
in interface WireFactory
ProxyCreationException
public void initialize() throws WireFactoryInitException
WireFactory
initialize
in interface WireFactory
WireFactoryInitException
- if an error is encountered during initializationpublic void setBusinessInterface(java.lang.Class interfaze)
WireFactory
setBusinessInterface
in interface WireFactory
public java.lang.Class getBusinessInterface()
WireFactory
getBusinessInterface
in interface WireFactory
public void addInterface(java.lang.Class claz)
WireFactory
addInterface
in interface WireFactory
public java.lang.Class[] getImplementatedInterfaces()
WireFactory
getImplementatedInterfaces
in interface WireFactory
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |