org.apache.geronimo.messaging.proxy
Class EndPointProxyFactoryImpl

java.lang.Object
  extended byorg.apache.geronimo.messaging.BaseEndPoint
      extended byorg.apache.geronimo.messaging.proxy.EndPointProxyFactoryImpl
All Implemented Interfaces:
EndPoint, EndPointProxyFactory, MsgConsProd, MsgConsumer, MsgProducer

public class EndPointProxyFactoryImpl
extends BaseEndPoint
implements EndPointProxyFactory

EndPointProxyFactory implementation.

Version:
$Revision: 1.3 $ $Date: 2004/07/20 00:06:13 $

Field Summary
 
Fields inherited from class org.apache.geronimo.messaging.BaseEndPoint
id, node, out, sender
 
Constructor Summary
EndPointProxyFactoryImpl(Node aNode, Object anID)
          Creates a factory mounted by the specified node and having the specified identifier.
 
Method Summary
 Object factory(EndPointProxyInfo anInfo)
          Creates a proxy for the EndPoint defined by anInfo.
 void releaseProxy(Object aProxy)
          Releases the resources of the specified EndPoint proxy.
 void setMsgProducerOut(MsgOutInterceptor aMsgOut)
          Sets a mean to this instance to push Msgs to the outside world.
 void start()
          Starts.
 void stop()
          Stops.
 
Methods inherited from class org.apache.geronimo.messaging.BaseEndPoint
getID, getMsgConsumerOut, handleRequest, handleResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.messaging.EndPoint
getID
 
Methods inherited from interface org.apache.geronimo.messaging.MsgConsumer
getMsgConsumerOut
 

Constructor Detail

EndPointProxyFactoryImpl

public EndPointProxyFactoryImpl(Node aNode,
                                Object anID)
Creates a factory mounted by the specified node and having the specified identifier.

Parameters:
aNode - Hosting Node.
anID - EndPoint identifier.
Method Detail

factory

public Object factory(EndPointProxyInfo anInfo)
Creates a proxy for the EndPoint defined by anInfo.

Specified by:
factory in interface EndPointProxyFactory
Parameters:
anInfo - EndPoint meta-data.
Returns:
A proxy for the EndPoint defined by anInfo. This proxy implements all the EndPoint interfaces plus the EndPointProxy interface.

releaseProxy

public void releaseProxy(Object aProxy)
Releases the resources of the specified EndPoint proxy.
From this point, the proxy can no more be used.

Specified by:
releaseProxy in interface EndPointProxyFactory
Parameters:
aProxy - EndPoint proxy.
Throws:
IllegalArgumentException - Indicates that the provided instance is not a proxy.

setMsgProducerOut

public void setMsgProducerOut(MsgOutInterceptor aMsgOut)
Description copied from interface: MsgProducer
Sets a mean to this instance to push Msgs to the outside world.

Specified by:
setMsgProducerOut in interface MsgProducer
Overrides:
setMsgProducerOut in class BaseEndPoint

start

public void start()
Description copied from interface: EndPointProxyFactory
Starts.

Specified by:
start in interface EndPointProxyFactory

stop

public void stop()
Description copied from interface: EndPointProxyFactory
Stops.

Specified by:
stop in interface EndPointProxyFactory


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.