org.springframework.security.config.authentication
Class AuthenticationManagerFactoryBean

java.lang.Object
  extended by org.springframework.security.config.authentication.AuthenticationManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<AuthenticationManager>

public class AuthenticationManagerFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<AuthenticationManager>, org.springframework.beans.factory.BeanFactoryAware

Factory bean for the namespace AuthenticationManager, which allows a more meaningful error message to be reported in the NoSuchBeanDefinitionException, if the user has forgotten to declare the <authentication-manager> element.

Since:
3.0

Field Summary
static java.lang.String MISSING_BEAN_ERROR_MESSAGE
           
 
Constructor Summary
AuthenticationManagerFactoryBean()
           
 
Method Summary
 AuthenticationManager getObject()
           
 java.lang.Class<? extends AuthenticationManager> getObjectType()
           
 boolean isSingleton()
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MISSING_BEAN_ERROR_MESSAGE

public static final java.lang.String MISSING_BEAN_ERROR_MESSAGE
See Also:
Constant Field Values
Constructor Detail

AuthenticationManagerFactoryBean

public AuthenticationManagerFactoryBean()
Method Detail

getObject

public AuthenticationManager getObject()
                                throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<AuthenticationManager>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<? extends AuthenticationManager> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<AuthenticationManager>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<AuthenticationManager>

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException