HDIV API 2.0.4

org.hdiv.application
Interface IApplication

All Known Implementing Classes:
ApplicationHDIV

public interface IApplication

ServletContext Wrapper interface

Author:
Roberto Velasco

Method Summary
 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 servletContext)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
          Callback that supplies the owning factory to a bean instance.
 

Method Detail

setApplication

void setApplication(javax.servlet.ServletContext servletContext)

getBean

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.

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

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.

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.