org.apache.geronimo.messaging.proxy
Interface EndPointProxyFactory

All Superinterfaces:
EndPoint, MsgConsProd, MsgConsumer, MsgProducer
All Known Implementing Classes:
EndPointProxyFactoryImpl

public interface EndPointProxyFactory
extends EndPoint

Factory of EndPoint proxies.

Version:
$Revision: 1.3 $ $Date: 2004/06/10 23:12:24 $

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 start()
          Starts.
 void stop()
          Stops.
 
Methods inherited from interface org.apache.geronimo.messaging.EndPoint
getID
 
Methods inherited from interface org.apache.geronimo.messaging.MsgProducer
setMsgProducerOut
 
Methods inherited from interface org.apache.geronimo.messaging.MsgConsumer
getMsgConsumerOut
 

Method Detail

start

public void start()
Starts.


stop

public void stop()
Stops.


factory

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

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.
An IllegalStateException should be thrown when a method is invoked on a EndPoint proxy.

Parameters:
aProxy - EndPoint proxy.
Throws:
IllegalArgumentException - Indicates that the provided instance is not a proxy.


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