spring-security-config

org.springframework.security.config.authentication
Class AuthenticationManagerFactoryBean

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

public class AuthenticationManagerFactoryBean
extends Object
implements FactoryBean<org.springframework.security.authentication.AuthenticationManager>, 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
Author:
Luke Taylor

Field Summary
static String MISSING_BEAN_ERROR_MESSAGE
           
 
Constructor Summary
AuthenticationManagerFactoryBean()
           
 
Method Summary
 org.springframework.security.authentication.AuthenticationManager getObject()
           
 Class<? extends org.springframework.security.authentication.AuthenticationManager> getObjectType()
           
 boolean isSingleton()
           
 void setBeanFactory(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 String MISSING_BEAN_ERROR_MESSAGE
See Also:
Constant Field Values
Constructor Detail

AuthenticationManagerFactoryBean

public AuthenticationManagerFactoryBean()
Method Detail

getObject

public org.springframework.security.authentication.AuthenticationManager getObject()
                                                                            throws Exception
Specified by:
getObject in interface FactoryBean<org.springframework.security.authentication.AuthenticationManager>
Throws:
Exception

getObjectType

public Class<? extends org.springframework.security.authentication.AuthenticationManager> getObjectType()
Specified by:
getObjectType in interface FactoryBean<org.springframework.security.authentication.AuthenticationManager>

isSingleton

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

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

spring-security-config