|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.pull.TurbinePull
This is a Facade class for PullService. This class provides static methods that call related methods of the implementation of the PullService used by the System, according to the settings in TurbineResources.
Constructor Summary | |
TurbinePull()
|
Method Summary | |
static java.lang.String |
getAbsolutePathToResourcesDirectory()
Return the absolute path of the resources directory used by application tools. |
static org.apache.velocity.context.Context |
getGlobalContext()
Get the context containing global tools that will be use as part of the Turbine Pull Model. |
static java.lang.String |
getResourcesDirectory()
Return the resources directory. |
static PullService |
getService()
Utility method for accessing the service implementation |
static ApplicationTool |
getTool(org.apache.velocity.context.Context context,
java.lang.String name)
Helper method that allows you to easily get a tool from a Context. |
static boolean |
isRegistered()
Checks whether this service has been registered. |
static void |
populateContext(org.apache.velocity.context.Context context,
RunData data)
Populate the given context with all request, session and persistent scope tools (it is assumed that the context already wraps the global context, and thus already contains the global tools). |
static void |
refreshGlobalTools()
Deprecated. No longer needed as Pull and Velocity Service are now more separate. |
static boolean |
refreshToolsPerRequest()
Deprecated. No longer needed as Pull and Velocity Service are now more separate. |
static void |
releaseTools(org.apache.velocity.context.Context context)
Release tool instances from the given context to the object pool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TurbinePull()
Method Detail |
public static PullService getService()
public static final org.apache.velocity.context.Context getGlobalContext()
public static final boolean isRegistered()
So users can use Turbine with templates in the traditional
manner. If the Pull Service is not listed in
TurbineResources.props
, or no tools are specified
the TurbineVelocityService will behave in its traditional
manner.
public static final java.lang.String getAbsolutePathToResourcesDirectory()
public static final java.lang.String getResourcesDirectory()
public static void populateContext(org.apache.velocity.context.Context context, RunData data)
context
- a Velocity Context to populatedata
- a RunData object for request specific datapublic static final void refreshGlobalTools()
If there are objects that don't implement the ApplicationTool interface, then they won't be refreshed.
public static final boolean refreshToolsPerRequest()
public static void releaseTools(org.apache.velocity.context.Context context)
context
- a Velocity Context to release tools frompublic static ApplicationTool getTool(org.apache.velocity.context.Context context, java.lang.String name)
context
- a Velocity Context to get tools fromname
- the name of the tool to get
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |