org.ajax4jsf.builder.config
Class BuilderConfig

java.lang.Object
  extended by org.ajax4jsf.builder.config.BuilderConfig
All Implemented Interfaces:
LoaderHolder

public class BuilderConfig
extends java.lang.Object
implements LoaderHolder

Parse builder config file for use with component creation.

Version:
$Revision: 1.1.2.10 $ $Date: 2007/02/20 20:57:58 $
Author:
asmirnov@exadel.com (latest modification by $Author: ishabalov $)

Field Summary
static java.lang.String COMPONENT_SCHEMA_BASE
          Resource path to config file schemas and entities
static java.lang.String ENTITIES_FOLDER
          Resource path to config file schemas and entities
 
Constructor Summary
BuilderConfig(java.lang.ClassLoader loader, Logger log)
           
 
Method Summary
 void addComponent(ComponentBean component)
           
 void addConverter(ConverterBean converter)
           
 void addFunction(FunctionBean function)
           
 void addListener(ListenerBean listener)
           
 void addRenderer(RendererBean renderer)
           
 void addValidator(ValidatorBean validator)
           
 void checkComponentProperties()
          Check all components for existing and default properties.
 void clear()
           
 boolean contains(java.lang.Object o)
           
 ComponentBaseBean get(int index)
           
 java.util.List<ComponentBean> getComponents()
           
 java.util.List<ConverterBean> getConverters()
           
 java.util.List<FunctionBean> getFunctions()
           
 java.util.List<ListenerBean> getListeners()
           
 java.lang.ClassLoader getLoader()
           
 Logger getLog()
           
 java.util.List<RendererBean> getRenderers()
           
 java.util.List<ValidatorBean> getValidators()
           
 int indexOf(ComponentBaseBean o)
           
 boolean isEmpty()
           
 void parseConfig(java.io.File configFile)
          Parsing builder configuration file
 boolean remove(ComponentBaseBean o)
           
 ComponentBaseBean remove(int index)
           
 void setLoader(java.lang.ClassLoader loader)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_SCHEMA_BASE

public static final java.lang.String COMPONENT_SCHEMA_BASE
Resource path to config file schemas and entities

See Also:
Constant Field Values

ENTITIES_FOLDER

public static final java.lang.String ENTITIES_FOLDER
Resource path to config file schemas and entities

See Also:
Constant Field Values
Constructor Detail

BuilderConfig

public BuilderConfig(java.lang.ClassLoader loader,
                     Logger log)
Parameters:
project - - current ant project
Method Detail

parseConfig

public void parseConfig(java.io.File configFile)
                 throws ParsingException
Parsing builder configuration file

Parameters:
configFile -
Throws:
ParsingException

checkComponentProperties

public void checkComponentProperties()
                              throws ParsingException
Check all components for existing and default properties.

Parameters:
classpath - - classpath to find user components, renderers, tags
Throws:
javax.naming.ConfigurationException
ParsingException

getLoader

public java.lang.ClassLoader getLoader()
Specified by:
getLoader in interface LoaderHolder
Returns:
Returns the loader.

setLoader

public void setLoader(java.lang.ClassLoader loader)
Specified by:
setLoader in interface LoaderHolder
Parameters:
loader - The loader to set.

getLog

public Logger getLog()
Specified by:
getLog in interface LoaderHolder
Returns:
current logger implementation

addComponent

public void addComponent(ComponentBean component)

addValidator

public void addValidator(ValidatorBean validator)

addConverter

public void addConverter(ConverterBean converter)

addRenderer

public void addRenderer(RendererBean renderer)

addListener

public void addListener(ListenerBean listener)

addFunction

public void addFunction(FunctionBean function)

clear

public void clear()

contains

public boolean contains(java.lang.Object o)

get

public ComponentBaseBean get(int index)

indexOf

public int indexOf(ComponentBaseBean o)

isEmpty

public boolean isEmpty()

getComponents

public java.util.List<ComponentBean> getComponents()

getConverters

public java.util.List<ConverterBean> getConverters()

getValidators

public java.util.List<ValidatorBean> getValidators()

getListeners

public java.util.List<ListenerBean> getListeners()

getRenderers

public java.util.List<RendererBean> getRenderers()
Returns:
the renderers

getFunctions

public java.util.List<FunctionBean> getFunctions()

remove

public ComponentBaseBean remove(int index)

remove

public boolean remove(ComponentBaseBean o)

size

public int size()


Copyright © 2009. All Rights Reserved.