|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--org.enhydra.barracuda.core.util.data.ObjectRepositoryAssembler
This class basically assembles objects into the default ObjectRepository based on an XML descriptor file. For a sample file look at /WEB-INF/object-repository.xml
There are only a few basic tags:
Attributes:
Attributes:
In addition to using arg attributes, you can use the value of the method tag (ie. if you only have one param), or you can use multiple param tags.
Attributes:
Unlike the method attribute, prop doesn't take arguments. Instead, you use the value of the prop to specify what the value should be set to. Right now, Strings, Integers, and Booleans are supported.
Attributes: n/a
Attributes:
Shortcomings and areas for improvement:
Nested Class Summary | |
class |
ObjectRepositoryAssembler.LocalAssemblyHandler
|
Field Summary | |
protected java.util.List |
argList
|
static java.lang.String |
ASSEMBLY_DESCRIPTOR
|
protected java.lang.String |
assemblySourceFile
|
static java.lang.String |
DEFAULT_DESCRIPTOR
|
static java.lang.String |
DEFAULT_PARSER
|
protected int |
depth
|
protected ObjectRepositoryAssembler.LocalAssemblyHandler |
handler
|
protected static org.apache.log4j.Logger |
logger
|
protected java.lang.String |
methodName
|
protected boolean |
needPropVal
|
protected java.util.Map |
objMap
|
protected java.util.Stack |
objStack
|
protected ObjectRepository |
or
|
protected int |
paramCntr
|
protected java.lang.String |
parserClass
|
protected java.lang.String |
propName
|
protected java.lang.String |
propVal
|
static java.lang.String |
SAX_PARSER
|
protected javax.servlet.ServletConfig |
servletConfig
|
static boolean |
TEST_BOOLEAN
|
static int |
TEST_INT
|
static java.lang.String |
TEST_STRING
|
Constructor Summary | |
ObjectRepositoryAssembler()
|
Method Summary | |
void |
assemble(ObjectRepository ior,
javax.servlet.ServletConfig iservletConfig,
java.lang.String iassemblySourceFile)
Assemble the system, given a specified ObjectRepository and the XML assembly decriptor name. |
void |
assemble(ObjectRepository ior,
javax.servlet.ServletConfig iservletConfig,
java.lang.String iassemblySourceFile,
java.lang.String iparserClass)
Assemble the system, given the root EventGateway, an XML assembly decriptor name, and a specific SAX parser class. |
void |
assemble(javax.servlet.ServletConfig iservletConfig,
java.lang.String iassemblySourceFile)
Assemble the system into the default ObjectRepository given the XML assembly decriptor name. |
void |
assemble(java.lang.String iassemblySourceFile)
Assemble the system into the default ObjectRepository given the XML assembly decriptor name. |
void |
init()
This class extends HttpServlet primarily for convenience, so that you easily use it to set up a servlet environment. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
public static java.lang.String ASSEMBLY_DESCRIPTOR
public static java.lang.String SAX_PARSER
public static java.lang.String DEFAULT_DESCRIPTOR
public static java.lang.String DEFAULT_PARSER
protected java.lang.String parserClass
protected java.lang.String assemblySourceFile
protected ObjectRepository or
protected javax.servlet.ServletConfig servletConfig
protected java.util.Map objMap
protected java.util.List argList
protected java.util.Stack objStack
protected java.lang.String methodName
protected java.lang.String propName
protected boolean needPropVal
protected java.lang.String propVal
protected int paramCntr
protected ObjectRepositoryAssembler.LocalAssemblyHandler handler
protected int depth
public static java.lang.String TEST_STRING
public static int TEST_INT
public static boolean TEST_BOOLEAN
Constructor Detail |
public ObjectRepositoryAssembler()
Method Detail |
public void assemble(java.lang.String iassemblySourceFile)
public void assemble(javax.servlet.ServletConfig iservletConfig, java.lang.String iassemblySourceFile)
public void assemble(ObjectRepository ior, javax.servlet.ServletConfig iservletConfig, java.lang.String iassemblySourceFile)
public void assemble(ObjectRepository ior, javax.servlet.ServletConfig iservletConfig, java.lang.String iassemblySourceFile, java.lang.String iparserClass)
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |