HDIV API 2.0.4

org.hdiv.application
Class ApplicationHDIV

java.lang.Object
  extended by org.hdiv.application.ApplicationHDIV
All Implemented Interfaces:
IApplication, org.springframework.beans.factory.BeanFactoryAware

public class ApplicationHDIV
extends java.lang.Object
implements IApplication, org.springframework.beans.factory.BeanFactoryAware

ServletContext's Wrapper class

Author:
Roberto Velasco
See Also:
BeanFactoryAware

Constructor Summary
ApplicationHDIV()
           
 
Method Summary
 javax.servlet.ServletContext getApplication()
           
 java.lang.Object getBean(java.lang.String name)
          Return an instance, which may be shared or independent, of the given bean name.
 void setApplication(javax.servlet.ServletContext application)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
          Callback that supplies the owning factory to a bean instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationHDIV

public ApplicationHDIV()
Method Detail

getApplication

public javax.servlet.ServletContext getApplication()

setApplication

public void setApplication(javax.servlet.ServletContext application)
Specified by:
setApplication in interface IApplication

getBean

public java.lang.Object getBean(java.lang.String name)
Return an instance, which may be shared or independent, of the given bean name. This method allows a Spring BeanFactory to be used as a replacement for the Singleton or Prototype design pattern.

Callers may retain references to returned objects in the case of Singleton beans.

Translates aliases back to the corresponding canonical bean name. Will ask the parent factory if the bean cannot be found in this factory instance.

Specified by:
getBean in interface IApplication
Parameters:
name - the name of the bean to return
Returns:
the instance of the bean
Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException - if there is no bean definition with the specified name
org.springframework.beans.BeansException - if the bean could not be obtained

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance. Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method.

Specified by:
setBeanFactory in interface IApplication
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Parameters:
beanFactory - owning BeanFactory (may not be null). The bean can immediately call methods on the factory.

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.