Class LdapRepositoryFactoryBean<T extends Repository<S,Name>,S>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,Name>
org.springframework.data.ldap.repository.support.LdapRepositoryFactoryBean<T,S>
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,FactoryBean<T>,InitializingBean,ApplicationEventPublisherAware,RepositoryFactoryInformation<S,Name>
public class LdapRepositoryFactoryBean<T extends Repository<S,Name>,S>
extends RepositoryFactoryBeanSupport<T,S,Name>
FactoryBean to create
LdapRepository instances.- Author:
- Mattias Hellborg Arthursson, Oliver Gierke, Mark Paluch
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionLdapRepositoryFactoryBean(Class<? extends T> repositoryInterface) Creates a newLdapRepositoryFactoryBeanfor the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected RepositoryFactorySupportvoidsetLdapOperations(org.springframework.ldap.core.LdapOperations ldapOperations) voidsetMappingContext(MappingContext<?, ?> mappingContext) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
LdapRepositoryFactoryBean
Creates a newLdapRepositoryFactoryBeanfor the given repository interface.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
setLdapOperations
public void setLdapOperations(org.springframework.ldap.core.LdapOperations ldapOperations) - Parameters:
ldapOperations-
-
setMappingContext
- Overrides:
setMappingContextin classRepositoryFactoryBeanSupport<T extends Repository<S,Name>, S, Name>
-
createRepositoryFactory
- Specified by:
createRepositoryFactoryin classRepositoryFactoryBeanSupport<T extends Repository<S,Name>, S, Name>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classRepositoryFactoryBeanSupport<T extends Repository<S,Name>, S, Name>
-