ch.elca.el4j.services.statistics.detailed.contextpassing
Class DetailedStatisticsImplicitContextPasser

java.lang.Object
  extended by ch.elca.el4j.core.contextpassing.AbstractImplicitContextPasser
      extended by ch.elca.el4j.services.statistics.detailed.contextpassing.DetailedStatisticsImplicitContextPasser
All Implemented Interfaces:
ImplicitContextPasser, BeanNameAware, InitializingBean

public class DetailedStatisticsImplicitContextPasser
extends AbstractImplicitContextPasser

This ImplicitContextPasser passes the DetailedStatisticsSharedContextHolder as implicit context.

Author:
Rashid Waraich (RWA), Philipp Oser (POS)
File-location:
DetailedStatisticsImplicitContextPasser
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Field Summary
static String SHARED_CONTEXT_ID
          The key to the shared context.
 
Constructor Summary
DetailedStatisticsImplicitContextPasser()
           
 
Method Summary
 Object getImplicitlyPassedContext()
          This method is called by the stub (e.g.
 void pushImplicitlyPassedContext(Object context)
          This method is called by the skeleton (e.g.
 void setImplicitContextPassingRegistry(ImplicitContextPassingRegistry registry)
          Sets the implicit context passing registry and registers this context passer.
 
Methods inherited from class ch.elca.el4j.core.contextpassing.AbstractImplicitContextPasser
afterPropertiesSet, getBeanName, setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHARED_CONTEXT_ID

public static final String SHARED_CONTEXT_ID
The key to the shared context.

See Also:
Constant Field Values
Constructor Detail

DetailedStatisticsImplicitContextPasser

public DetailedStatisticsImplicitContextPasser()
Method Detail

getImplicitlyPassedContext

public Object getImplicitlyPassedContext()
This method is called by the stub (e.g. ProxyBean) that makes a remote invocation to collect the implicitly passed context and add it to the invocation.

Returns:
The context that should be added to a method call.

pushImplicitlyPassedContext

public void pushImplicitlyPassedContext(Object context)
This method is called by the skeleton (e.g. ExporterBean) that receives a remote invocation to push the context to the bean.

Parameters:
context - The received context that should be pushed to the service.

setImplicitContextPassingRegistry

public void setImplicitContextPassingRegistry(ImplicitContextPassingRegistry registry)
Sets the implicit context passing registry and registers this context passer.

Overrides:
setImplicitContextPassingRegistry in class AbstractImplicitContextPasser
Parameters:
registry - The implicit context passing registry.


Copyright © 2005-2011 ELCA. All Rights Reserved.