Uses of Class
org.webmacro.Broker

Packages that use Broker
org.webmacro   
org.webmacro.directive   
org.webmacro.engine   
org.webmacro.parser   
org.webmacro.resource What's in this directory: -- Classes that relate to resources made available in the WebMacro system. 
org.webmacro.servlet   
org.webmacro.util   
 

Uses of Broker in org.webmacro
 

Methods in org.webmacro that return Broker
 Broker WebMacro.getBroker()
          This object is used to access components that have been plugged into WebMacro; it is shared between all instances of this class and its subclasses.
 Broker WM.getBroker()
          This object is used to access components that have been plugged into WebMacro; it is shared between all instances of this class and its subclasses.
 Broker Context.getBroker()
          Get the instance of the Broker for this request
static Broker Broker.getBroker()
           
static Broker Broker.getBroker(java.lang.String settingsFile)
           
protected static Broker Broker.findBroker(java.lang.Object key)
          Find the broker for the specified partition _key, if one is registered.
 

Methods in org.webmacro with parameters of type Broker
 void Provider.init(Broker b, Settings config)
          Initialize this provider based on the specified config.
static FastWriter FastWriter.getInstance(Broker broker, java.io.OutputStream out, java.lang.String encoding)
          Get a new FastWriter.
static FastWriter FastWriter.getInstance(Broker broker, java.lang.String encoding)
          Return a FastWriter with the specified encoding and no output stream.
static FastWriter FastWriter.getInstance(Broker broker)
          Return a FastWriter with default encoding and no output stream.
protected static void Broker.register(java.lang.Object key, Broker broker)
          Used to maintain a weak map mapping the partition _key to the Broker.
 

Constructors in org.webmacro with parameters of type Broker
WM(Broker broker)
          Constructs a WM from an arbitrary Broker.
FastWriter(Broker broker, java.io.OutputStream out, java.lang.String encoding)
          Create a FastWriter to the target outputstream.
FastWriter(Broker broker, java.lang.String encoding)
          Create a new FastWriter with no output stream target.
Context(Broker broker)
          Create a new Context relative to the supplied broker
Broker(Broker dummy, java.lang.String name)
          Explicitly provide the properties that WebMacro should configure from.
 

Uses of Broker in org.webmacro.directive
 

Methods in org.webmacro.directive with parameters of type Broker
protected  java.lang.String[] IncludeDirective.getTemplateExtensions(Broker b)
          get an array of Template file extensions we should use, if type==dynamic, to decide if the specified file is a template or not
protected  int IncludeDirective.guessType(Broker b, java.lang.String filename)
          if the filename contains :// assume it's a file b/c it's probably a url.
protected  java.lang.Object IncludeDirective.getThingToInclude(Broker b, int type, java.lang.String filename)
          get the template or file that the user wants to include, based on the specified type.
protected  Template IncludeDirective.getTemplate(Broker b, java.lang.String name)
          get a Template via the "template" provider known by the specified broker
protected  java.lang.String IncludeDirective.getFile(Broker b, java.lang.String name)
          get the contents of a file (local file or url) via the "url" provider known by the specified broker.
 void DirectiveProvider.init(Broker broker, Settings config)
           
static void BeanDirective.init(Broker b)
           
 

Uses of Broker in org.webmacro.engine
 

Fields in org.webmacro.engine declared as Broker
protected  Broker WMTemplate._broker
          The resource broker used to resolve things in this template
 

Methods in org.webmacro.engine with parameters of type Broker
 void ParserProvider.init(Broker broker, Settings p)
           
 void DefaultEvaluationExceptionHandler.init(Broker b, Settings config)
           
 void DebugEvaluationExceptionHandler.init(Broker b, Settings config)
           
 void CrankyEvaluationExceptionHandler.init(Broker b, Settings config)
           
 void EvaluationExceptionHandler.init(Broker b, Settings config)
          Initialize the EEH
 void PropertyOperatorCache.init(Broker b, Settings config)
           
 

Constructors in org.webmacro.engine with parameters of type Broker
TextParser(Broker broker)
           
StringTemplate(Broker broker, java.lang.String templateText)
          Instantiate a template.
StringTemplate(Broker broker, java.lang.String templateText, java.lang.String name)
          Instantiate a template.
StreamTemplate(Broker broker, java.io.Reader inStream)
          Instantiate a template based on the specified stream
StreamTemplate(Broker broker, java.io.InputStream in)
          Instantiate a template based on the specified stream Will use webmacro's default encoding.
StreamTemplate(Broker broker, java.io.InputStream in, java.lang.String encoding)
          Instantiate a template based on the specified stream If encoding is null, webmacro's default encoding will be used.
NullParser(Broker broker)
           
WMTemplate(Broker broker)
          Create a new Template.
WMTemplate(java.lang.String parserName, Broker broker)
          Create a new Template specifying both the broker and the parsing language.
FileTemplate(Broker broker, java.lang.String filename)
          Instantiate a template based on the specified filename using the default encoding from WebMacro.properties (TemplateEncoding), or if not specified there then the UTF-8 encoding.
FileTemplate(Broker broker, java.io.File templateFile)
          Instantiate a template based on the specified file using the default encoding from WebMacro.properties (TemplateEncoding), if not specified there then the UTF-8 encoding.
FileTemplate(Broker broker, java.io.File tmplFile, java.lang.String encoding)
          Instantiate a template based on the specified file using the specified encoding to read the template.
DefaultEvaluationExceptionHandler(Broker b)
           
DebugEvaluationExceptionHandler(Broker b)
           
CrankyEvaluationExceptionHandler(Broker b)
           
BuildContext(Broker b)
           
 

Uses of Broker in org.webmacro.parser
 

Constructors in org.webmacro.parser with parameters of type Broker
WMParser_impl(Broker broker, java.lang.String templateName, BackupCharStream stream)
           
WMParser_impl(Broker broker, java.lang.String templateName, java.io.Reader reader)
           
WMParser(Broker b)
           
 

Uses of Broker in org.webmacro.resource
 

Fields in org.webmacro.resource declared as Broker
protected  Broker AbstractTemplateLoader.broker
          Our broker
 

Methods in org.webmacro.resource with parameters of type Broker
 void UrlProvider.init(Broker b, Settings config)
           
 void URLTemplateProvider.init(Broker b, Settings config)
          Create a new TemplateProvider that uses the specified directory as the source for Template objects that it will return
 void TrivialCacheManager.init(Broker b, Settings config, java.lang.String resourceType)
           
 void TemplateProvider.init(Broker b, Settings config)
          Create a new TemplateProvider that uses the specified directory as the source for Template objects that it will return
 void StaticSMapCacheManager.init(Broker b, Settings config, java.lang.String resourceType)
           
 void StaticIdentityCacheManager.init(Broker b, Settings config, java.lang.String resourceType)
           
 void ServletContextTemplateLoader.init(Broker broker, Settings config)
           
 void SMapCacheManager.init(Broker b, Settings config, java.lang.String resourceType)
           
 void HMapCacheManager.init(Broker b, Settings config, java.lang.String resourceType)
           
 void GenerationalCacheManager.init(Broker b, Settings config, java.lang.String resourceType)
           
 void DelegatingTemplateProvider.init(Broker broker, Settings config)
           
 TemplateLoader TemplateLoaderFactory.getTemplateLoader(Broker b, java.lang.String config)
          Create a template loader
 TemplateLoader DefaultTemplateLoaderFactory.getTemplateLoader(Broker b, java.lang.String config)
           
 void ConfigProvider.init(Broker b, Settings config)
           
 void ClassPathTemplateLoader.init(Broker broker, Settings config)
           
 void BrokerTemplateProviderHelper.init(Broker b, Settings config)
          Create a new TemplateProvider that uses the specified directory as the source for Template objects that it will return
 void CachingProvider.init(Broker b, Settings config)
          If you override this method be sure and call super.init(...)
 void BrokerTemplateProvider.init(Broker b, Settings config)
           
 void ReloadDelayDecorator.init(Broker b, Settings config)
          Initialize object.
 void TemplateLoaderHelper.init(Broker b, Settings config)
          Initialize this object
 void TemplateLoader.init(Broker b, Settings settings)
          Init this template loader*
 void AbstractTemplateLoader.init(Broker b, Settings config)
          Sets up broker, reloadDelayDecorator and log.
 void ResourceLoader.init(Broker b, Settings config)
          Initialize this provider based on the specified config.
 void CacheManager.init(Broker b, Settings config, java.lang.String resourceType)
          Same as defined in Provider, except with an additional type parameter so it knows what type of resource it is caching
 

Constructors in org.webmacro.resource with parameters of type Broker
URLTemplate(Broker broker, java.net.URL templateURL)
          Instantiate a template based on the specified file We use can use the special case or URLs like file:xxxxxx or jar:xxxxxx!yyyyyy extracting the xxxxxx.
 

Uses of Broker in org.webmacro.servlet
 

Subclasses of Broker in org.webmacro.servlet
 class Servlet20Broker
          An implementation of Broker tailored for Servlet 2.0/2.1 environments.
 class Servlet22Broker
          An implementation of Broker tailored for Servlet 2.2 environments.
 class ServletBroker
           
 

Methods in org.webmacro.servlet that return Broker
 Broker WMServlet.getBroker()
          This object is used to access components that have been plugged into WebMacro; it is shared between all instances of this class and its subclasses.
static Broker Servlet22Broker.getBroker(javax.servlet.Servlet s)
           
static Broker ServletBroker.getBroker(javax.servlet.Servlet s)
           
static Broker Servlet20Broker.getBroker(javax.servlet.Servlet s)
           
 

Constructors in org.webmacro.servlet with parameters of type Broker
WebContext(Broker broker)
          Construct a new WebContext.
 

Uses of Broker in org.webmacro.util
 

Methods in org.webmacro.util with parameters of type Broker
 LogTarget LogTargetFactory.createLogTarget(Broker broker, java.lang.String classname, Settings settings)
          Creates a new org.webmacro.util.LogTarget
 void EncoderProvider.init(Broker b, Settings config)
          Initialize this provider based on the specified config.
 void Encoder.init(Broker b, Settings config)