com.dyuproject.ioc
Class Context

java.lang.Object
  extended by com.dyuproject.ioc.Context

public final class Context
extends Object

The parsing context

Author:
David Yu
Date created:
Feb 23, 2009

Constructor Summary
Context(Resource resource, ApplicationContext appContext, Parser parser)
           
 
Method Summary
protected  void clear()
           
 ApplicationContext getAppContext()
          Gets the ApplicationContext tied to this context.
static Context getCurrent()
          Gets the current thread local context.
 Parser getParser()
          Gets the Parser tied to this context.
 Resource getResource()
          Gets the Resource tied to this context.
static void setCurrent(Context context)
          Sets the thread local context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context(Resource resource,
               ApplicationContext appContext,
               Parser parser)
Method Detail

getCurrent

public static Context getCurrent()
Gets the current thread local context.


setCurrent

public static void setCurrent(Context context)
Sets the thread local context.


getResource

public Resource getResource()
Gets the Resource tied to this context.


getAppContext

public ApplicationContext getAppContext()
Gets the ApplicationContext tied to this context.


getParser

public Parser getParser()
Gets the Parser tied to this context.


clear

protected void clear()


Copyright © 2008-2013. All Rights Reserved.