org.apache.commons.jelly.tags.ojb
Class BrokerTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.ojb.BrokerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class BrokerTag
extends org.apache.commons.jelly.TagSupport

Tag handler for <Driver> in JSTL, used to create a simple DataSource for prototyping.

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
private  org.apache.ojb.broker.PersistenceBroker broker
          The persistence broker instance
private  java.lang.String var
          The variable name to export.
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
BrokerTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 org.apache.ojb.broker.PersistenceBroker getBroker()
           
 void setBroker(org.apache.ojb.broker.PersistenceBroker broker)
          Sets the persistence broker instance
 void setVar(java.lang.String var)
          Sets the variable name to define for this expression
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

private java.lang.String var
The variable name to export.


broker

private org.apache.ojb.broker.PersistenceBroker broker
The persistence broker instance

Constructor Detail

BrokerTag

public BrokerTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

setVar

public void setVar(java.lang.String var)
Sets the variable name to define for this expression


getBroker

public org.apache.ojb.broker.PersistenceBroker getBroker()
Returns:
the persistence broker instance

setBroker

public void setBroker(org.apache.ojb.broker.PersistenceBroker broker)
Sets the persistence broker instance