com.caucho.inject
Class RequestContext

java.lang.Object
  extended by com.caucho.config.scope.AbstractScopeContext
      extended by com.caucho.inject.RequestContext
All Implemented Interfaces:
Context

@Module
public class RequestContext
extends AbstractScopeContext

Scope based on the current transaction.


Constructor Summary
RequestContext()
           
 
Method Summary
static void begin()
           
protected  ContextContainer createContextContainer()
           
static void end()
           
protected  ContextContainer getContextContainer()
           
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          Returns the scope annotation type.
 boolean isActive()
          Returns true if the scope is currently active.
 
Methods inherited from class com.caucho.config.scope.AbstractScopeContext
closeContext, create, get, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestContext

public RequestContext()
Method Detail

begin

public static void begin()

end

public static void end()

isActive

public boolean isActive()
Returns true if the scope is currently active.

Specified by:
isActive in interface Context
Specified by:
isActive in class AbstractScopeContext

getScope

public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Returns the scope annotation type.

Specified by:
getScope in interface Context
Specified by:
getScope in class AbstractScopeContext

getContextContainer

protected ContextContainer getContextContainer()
Specified by:
getContextContainer in class AbstractScopeContext

createContextContainer

protected ContextContainer createContextContainer()
Specified by:
createContextContainer in class AbstractScopeContext