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.
  • Constructor Details

    • PrincipalDataProviderFactoryBean

      public PrincipalDataProviderFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      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:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getObject

      public PrincipalDataProvider getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<PrincipalDataProvider>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<PrincipalDataProvider>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.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:
      setApplicationContext in interface org.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