SourceForge.net Logo

de.mindmatters.faces.spring.factory.context
Class ManagedBeanDefinition

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanDefinition
      extended byorg.springframework.beans.factory.support.RootBeanDefinition
          extended byde.mindmatters.faces.spring.factory.context.ManagedBeanDefinition
All Implemented Interfaces:
BeanDefinition, ScopedBeanDefinition

public final class ManagedBeanDefinition
extends RootBeanDefinition
implements ScopedBeanDefinition

RootBeanDefinition for beans defined in a JSF context. Supports bean declarations of type List, Map and beans complying with the JavaBeans convention.

Author:
Andreas Kuhrwahl

Field Summary
protected  org.apache.commons.logging.Log logger
          For logging.
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, DEPENDENCY_CHECK_ALL, DEPENDENCY_CHECK_NONE, DEPENDENCY_CHECK_OBJECTS, DEPENDENCY_CHECK_SIMPLE
 
Constructor Summary
ManagedBeanDefinition(java.lang.String resourceDescription, java.lang.Class beanClass, MutablePropertyValues pvs, java.lang.String scope)
          Creates a new ManagedBeanDefinition, providing property values.
ManagedBeanDefinition(java.lang.String resourceDescription, java.lang.String beanClassName, MutablePropertyValues pvs, java.lang.String scope)
          Creates a new ManagedBeanDefinition, providing property values.
 
Method Summary
 java.lang.String getScope()
           
 boolean isApplicationScope()
           
 boolean isNoneScope()
           
 boolean isRequestScope()
           
 boolean isSessionScope()
           
 void setAbstract(boolean abstractFlag)
          
 void setAutowireMode(int autowireMode)
          
 void setConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues)
          
 void setDependencyCheck(int dependencyCheck)
          
 void setFactoryBeanName(java.lang.String factoryBeanName)
          
 void setFactoryMethodName(java.lang.String factoryMethodName)
          
 void setScope(java.lang.String scope)
          Sets the scope of the bean represented by this definition.
protected  void validateMethodOverride(MethodOverride mo)
          
 
Methods inherited from class org.springframework.beans.factory.support.RootBeanDefinition
toString, validate
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition
getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getMethodOverrides, getPropertyValues, getResolvedAutowireMode, getResourceDescription, hasBeanClass, hasConstructorArgumentValues, isAbstract, isLazyInit, isSingleton, overrideFrom, setBeanClass, setBeanClassName, setDependsOn, setDestroyMethodName, setInitMethodName, setLazyInit, setMethodOverrides, setPropertyValues, setResourceDescription, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.mindmatters.faces.spring.factory.context.ScopedBeanDefinition
getBeanClass, hasBeanClass
 
Methods inherited from interface org.springframework.beans.factory.config.BeanDefinition
getConstructorArgumentValues, getPropertyValues, getResourceDescription, isAbstract, isLazyInit, isSingleton
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
For logging.

Constructor Detail

ManagedBeanDefinition

public ManagedBeanDefinition(java.lang.String resourceDescription,
                             java.lang.Class beanClass,
                             MutablePropertyValues pvs,
                             java.lang.String scope)
Creates a new ManagedBeanDefinition, providing property values.

Parameters:
resourceDescription - description of the resource that this bean definition came from
beanClass - the class of the bean to instantiate
pvs - the property values to apply if bean declaration complies with the JavaBeans conventions
scope - of the bean

ManagedBeanDefinition

public ManagedBeanDefinition(java.lang.String resourceDescription,
                             java.lang.String beanClassName,
                             MutablePropertyValues pvs,
                             java.lang.String scope)
Creates a new ManagedBeanDefinition, providing property values. Takes a bean class name to avoid eager loading of the bean class.

Parameters:
resourceDescription - description of the resource that this bean definition came from
beanClassName - the name of the class to instantiate
pvs - the property values to apply if bean declaration complies with the JavaBeans conventions
scope - of the bean
Method Detail

isApplicationScope

public boolean isApplicationScope()
Specified by:
isApplicationScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in application-scope otherwise false

isSessionScope

public boolean isSessionScope()
Specified by:
isSessionScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in session-scope otherwise false

isRequestScope

public boolean isRequestScope()
Specified by:
isRequestScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in request-scope otherwise false

isNoneScope

public boolean isNoneScope()
Specified by:
isNoneScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in none-scope otherwise false

getScope

public java.lang.String getScope()
Specified by:
getScope in interface ScopedBeanDefinition
Returns:
the scope

setAutowireMode

public void setAutowireMode(int autowireMode)


setDependencyCheck

public void setDependencyCheck(int dependencyCheck)


setFactoryBeanName

public void setFactoryBeanName(java.lang.String factoryBeanName)


setFactoryMethodName

public void setFactoryMethodName(java.lang.String factoryMethodName)


setAbstract

public void setAbstract(boolean abstractFlag)


setConstructorArgumentValues

public void setConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues)


setScope

public void setScope(java.lang.String scope)
Sets the scope of the bean represented by this definition.

Specified by:
setScope in interface ScopedBeanDefinition
Parameters:
scope - the scope

validateMethodOverride

protected void validateMethodOverride(MethodOverride mo)


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG