org.weblab_project.core.helper.impl
Class BeanHelperImpl

java.lang.Object
  extended by org.weblab_project.core.helper.BeanHelper
      extended by org.weblab_project.core.helper.impl.BeanHelperImpl

public class BeanHelperImpl
extends 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
<T> T
getBean(java.lang.String name, java.lang.Class<T> beanClass)
           
 BeanHelper getSpecificInstance(java.lang.String path)
           
 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
 

Field Detail

CONF_FILE

public static final java.lang.String CONF_FILE
The default configuration file to be used.

See Also:
Constant Field Values
Constructor Detail

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.

Method Detail

getSpecificInstance

public BeanHelper getSpecificInstance(java.lang.String path)
Specified by:
getSpecificInstance in class BeanHelper

getBean

public <T> T getBean(java.lang.String name,
                     java.lang.Class<T> beanClass)
Specified by:
getBean in class BeanHelper

getSpecificInstance

public BeanHelper getSpecificInstance(java.lang.String fileNameOrPath,
                                      boolean name)
Specified by:
getSpecificInstance in class BeanHelper

isBeanDefined

public boolean isBeanDefined(java.lang.String name,
                             java.lang.Class<?> beanClass)
Specified by:
isBeanDefined in class BeanHelper


Copyright © 2004-2010. All Rights Reserved.