org.weblab_project.core.helper.impl
Class BeanHelperImpl
java.lang.Object
org.weblab_project.core.helper.BeanHelper
org.weblab_project.core.helper.impl.BeanHelperImpl
public class BeanHelperImpl
- extends org.weblab_project.core.helper.BeanHelper
Handle an XmlBeanFactory
as defined in the Spring framework.
- Author:
- EADS WebLab Team
- Date:
- 2007-08-29
Field Summary |
static java.lang.String |
CONF_FILE
The default configuration file to be used. |
Fields inherited from class org.weblab_project.core.helper.BeanHelper |
FILENAME |
Constructor Summary |
BeanHelperImpl()
The default constructor Instantiate the current factory using the configuration file CONF_FILE , and add it to the newly created map. |
Method Summary |
|
getBean(java.lang.String name,
java.lang.Class<T> beanClass)
|
org.weblab_project.core.helper.BeanHelper |
getSpecificInstance(java.lang.String path)
|
org.weblab_project.core.helper.BeanHelper |
getSpecificInstance(java.lang.String fileNameOrPath,
boolean name)
|
boolean |
isBeanDefined(java.lang.String name,
java.lang.Class<?> beanClass)
|
Methods inherited from class org.weblab_project.core.helper.BeanHelper |
getInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONF_FILE
public static final java.lang.String CONF_FILE
- The default configuration file to be used.
- See Also:
- Constant Field Values
BeanHelperImpl
public BeanHelperImpl()
- The default constructor Instantiate the current factory using the configuration file
CONF_FILE
, and add it to the newly created map. If
CONF_FILE
is not accessible in classpath, the error is logged but nothing is done.
getSpecificInstance
public org.weblab_project.core.helper.BeanHelper getSpecificInstance(java.lang.String path)
- Specified by:
getSpecificInstance
in class org.weblab_project.core.helper.BeanHelper
getBean
public <T> T getBean(java.lang.String name,
java.lang.Class<T> beanClass)
- Specified by:
getBean
in class org.weblab_project.core.helper.BeanHelper
getSpecificInstance
public org.weblab_project.core.helper.BeanHelper getSpecificInstance(java.lang.String fileNameOrPath,
boolean name)
- Specified by:
getSpecificInstance
in class org.weblab_project.core.helper.BeanHelper
isBeanDefined
public boolean isBeanDefined(java.lang.String name,
java.lang.Class<?> beanClass)
- Specified by:
isBeanDefined
in class org.weblab_project.core.helper.BeanHelper
Copyright © 2004-2009. All Rights Reserved.