org.objectweb.speedo.pm.api
Interface ProxyManagerFactory

All Known Implementing Classes:
Speedo, SpeedoProxyManagerFactory

public interface ProxyManagerFactory

It manages proxy manager instances.

Author:
S.Chassande-Barrioz

Method Summary
 void bindPM2Thread(ProxyManager pm)
          Ask to the PMS to bind a particular PM to the Thread.
 ProxyManager lookup()
          Finds in the associated ProxyManagerSwitch a ProxyManager managed by the ProxyManagerFactory.
 void proxyManagerClosed(ProxyManager pr)
          Indicates when a PM has been closed.
 void unbindPM()
          It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread.
 

Method Detail

lookup

public ProxyManager lookup()
Finds in the associated ProxyManagerSwitch a ProxyManager managed by the ProxyManagerFactory.

Returns:
a ProxyManager instance or a null value.

unbindPM

public void unbindPM()
It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread.


bindPM2Thread

public void bindPM2Thread(ProxyManager pm)
Ask to the PMS to bind a particular PM to the Thread.

Parameters:
pm -

proxyManagerClosed

public void proxyManagerClosed(ProxyManager pr)
Indicates when a PM has been closed.

Parameters:
pr - the closed PM.