Class JellyBeanBuilderFactory
- java.lang.Object
-
- net.sf.jguiraffe.gui.builder.impl.JellyBeanBuilderFactory
-
- All Implemented Interfaces:
BeanBuilderFactory
public class JellyBeanBuilderFactory extends Object implements BeanBuilderFactory
An implementation of the
BeanBuilderFactory
interface that returns
instances.JellyBeanBuilder
This bean builder factory implementation can be used for obtaining builder objects that are able to process Jelly scripts with bean definitions. Note: The setter methods defined by this class are intended to be used for initialization purposes only (i.e. using property injection). After an instance was passed to its clients, it should not be changed any more. If this criterion is fulfilled, the instance can be shared between multiple threads.
- Version:
- $Id: JellyBeanBuilderFactory.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Field Summary
Fields Modifier and Type Field Description static String
NSURI_DI_BUILDER
Constant for the default name space URI for the DIBuilder tag library.
-
Constructor Summary
Constructors Constructor Description JellyBeanBuilderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanBuilder
getBeanBuilder()
Returns the builder instance to be used.String
getDiBuilderNameSpaceURI()
Returns the URI for the name space of the DI builder tag library.void
setDiBuilderNameSpaceURI(String diBuilderNameSpaceURI)
Sets the URI for the name space of the DI builder tag library.
-
-
-
Field Detail
-
NSURI_DI_BUILDER
public static final String NSURI_DI_BUILDER
Constant for the default name space URI for the DIBuilder tag library.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDiBuilderNameSpaceURI
public String getDiBuilderNameSpaceURI()
Returns the URI for the name space of the DI builder tag library. If no URI was specified, a default URI is returned.- Returns:
- the URI for the DI builder tag library
-
setDiBuilderNameSpaceURI
public void setDiBuilderNameSpaceURI(String diBuilderNameSpaceURI)
Sets the URI for the name space of the DI builder tag library. In the Jelly scripts to be processed this URI must be used for specifying a name space prefix for the DI builder tags.- Parameters:
diBuilderNameSpaceURI
- the URI for the DI builder tag library
-
getBeanBuilder
public BeanBuilder getBeanBuilder() throws BuilderException
Returns the builder instance to be used.- Specified by:
getBeanBuilder
in interfaceBeanBuilderFactory
- Returns:
- the new builder instance
- Throws:
BuilderException
- if an error occurs
-
-