Class PrincipalDataProviderFactoryBean
java.lang.Object
com.xebialabs.deployit.security.principaldata.PrincipalDataProviderFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.FactoryBean<PrincipalDataProvider>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
@Service
public class PrincipalDataProviderFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<PrincipalDataProvider>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Factory bean responsible for creating a PrincipalDataProvider instance.
This class integrates with Spring's lifecycle to configure and provide a PrincipalDataProvider
based on the application context's available resources.
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the PrincipalDataProvider after the properties are set.Class<?>booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext context) Sets the ApplicationContext that this object runs in.
-
Constructor Details
-
PrincipalDataProviderFactoryBean
public PrincipalDataProviderFactoryBean()
-
-
Method Details
-
afterPropertiesSet
Initializes the PrincipalDataProvider after the properties are set. This method configures the provider with available user data providers, prioritizing local, crowd, and LDAP sources.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<PrincipalDataProvider>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<PrincipalDataProvider>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<PrincipalDataProvider>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException Sets the ApplicationContext that this object runs in. This method is called by the Spring container to provide the ApplicationContext.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Parameters:
context- the ApplicationContext object to be used by this object- Throws:
org.springframework.beans.BeansException- if thrown by application context methods
-