jfun.yan.xml.nuts.spring
Class SpringNuts

java.lang.Object
  extended by jfun.yan.xml.nuts.spring.SpringNuts

public class SpringNuts
extends java.lang.Object

The utility class to decrate a Nuts Interpreter object with tags that are aware of Spring beans.

Author:
Ben Yu Nov 17, 2005 2:57:21 PM

Constructor Summary
SpringNuts()
           
 
Method Summary
static void setSpringAware(java.lang.String module_name, NutsProcessor processor)
          Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.
static void setSpringAware(java.lang.String module_name, NutsProcessor processor, java.lang.ClassLoader loader)
          Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.
static void setSpringAware(java.lang.String module_name, NutsProcessor processor, java.lang.ClassLoader loader, java.lang.String nuts_resource)
          Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.
static void setSpringAware(java.lang.String module_name, NutsProcessor processor, java.lang.ClassLoader loader, java.lang.String nuts_resource, java.lang.String appcontext_resource)
          Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.
static void setSpringAware(java.lang.String module_name, NutsProcessor processor, java.lang.String nuts_resource)
          Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringNuts

public SpringNuts()
Method Detail

setSpringAware

public static void setSpringAware(java.lang.String module_name,
                                  NutsProcessor processor,
                                  java.lang.ClassLoader loader)
Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.

Parameters:
module_name - the name of the current module.
processor - the processor object.
loader - the class loader used to load the spring-aware nuts classes.

setSpringAware

public static void setSpringAware(java.lang.String module_name,
                                  NutsProcessor processor,
                                  java.lang.ClassLoader loader,
                                  java.lang.String nuts_resource)
Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.

Parameters:
module_name - the name of the current module.
processor - the processor object.
loader - the class loader used to load the spring-aware
nuts_resource - the resource name of the config file that configures the nut classes. nuts classes.

setSpringAware

public static void setSpringAware(java.lang.String module_name,
                                  NutsProcessor processor,
                                  java.lang.ClassLoader loader,
                                  java.lang.String nuts_resource,
                                  java.lang.String appcontext_resource)
Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.

Parameters:
module_name - the name of the current module.
processor - the processor object.
loader - the class loader used to load the spring-aware
nuts_resource - the resource name of the config file that configures the nut classes.
appcontext_resource - the resource name of the config file that configures the ApplicationContext.

setSpringAware

public static void setSpringAware(java.lang.String module_name,
                                  NutsProcessor processor)
Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.

The class loader for component classes is used to load the spring nut classes.

Parameters:
module_name - the current module name.
processor - the processor object.

setSpringAware

public static void setSpringAware(java.lang.String module_name,
                                  NutsProcessor processor,
                                  java.lang.String nuts_resource)
Make an processor spring-aware by registering spring-aware nuts tags such as ctor, bean, method etc.

The class loader for component classes is used to load the spring nut classes.

Parameters:
module_name - the current module name.
processor - the processor object.
nuts_resource - the resource name of the config file that configures the nut classes.