jasco.runtime
Class DefaultTrapExecutor

java.lang.Object
  extended by jasco.runtime.DefaultTrapExecutor
All Implemented Interfaces:
ConnectorRegistryListener, ITrapExecutor
Direct Known Subclasses:
DistributedTrapExecutor

public class DefaultTrapExecutor
extends java.lang.Object
implements ITrapExecutor, ConnectorRegistryListener


Constructor Summary
DefaultTrapExecutor()
           
 
Method Summary
protected  void addToCachedItems(java.util.Vector result, CombinedHooks cached)
           
protected  void compCachable(Connector c)
           
 java.lang.Object executeTrap(JascoMethod aJascoMethod)
           
protected  CombinedHooks getCachedItem(java.util.Vector result)
           
protected  void invalidateCache()
           
 boolean isAdapted(JascoMethod method)
           
protected  boolean isCachable(java.util.Vector hooks)
           
 void registryChanged(CRChangeEvent event)
          method invoked whenever something changes in the connector registry: connector added, removed, connector combinattion strategy added or removed,...
 void registryUpdated()
          method invoked when the automatic connector loading process is finished is invoked regardless of whether connectors were added or deleted use registryChanged to know that.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTrapExecutor

public DefaultTrapExecutor()
Method Detail

addToCachedItems

protected void addToCachedItems(java.util.Vector result,
                                CombinedHooks cached)

invalidateCache

protected void invalidateCache()

compCachable

protected void compCachable(Connector c)

isCachable

protected boolean isCachable(java.util.Vector hooks)

getCachedItem

protected CombinedHooks getCachedItem(java.util.Vector result)

executeTrap

public java.lang.Object executeTrap(JascoMethod aJascoMethod)
                             throws java.lang.Exception
Specified by:
executeTrap in interface ITrapExecutor
Throws:
java.lang.Exception

isAdapted

public boolean isAdapted(JascoMethod method)
Specified by:
isAdapted in interface ITrapExecutor

registryChanged

public void registryChanged(CRChangeEvent event)
Description copied from interface: ConnectorRegistryListener
method invoked whenever something changes in the connector registry: connector added, removed, connector combinattion strategy added or removed,...

Specified by:
registryChanged in interface ConnectorRegistryListener

registryUpdated

public void registryUpdated()
Description copied from interface: ConnectorRegistryListener
method invoked when the automatic connector loading process is finished is invoked regardless of whether connectors were added or deleted use registryChanged to know that.

Specified by:
registryUpdated in interface ConnectorRegistryListener