Class EntityViewAwareCrudMethodMetadataPostProcessor

java.lang.Object
com.blazebit.persistence.spring.data.base.repository.EntityViewAwareCrudMethodMetadataPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.data.repository.core.support.RepositoryProxyPostProcessor

public class EntityViewAwareCrudMethodMetadataPostProcessor extends Object implements org.springframework.data.repository.core.support.RepositoryProxyPostProcessor, org.springframework.beans.factory.BeanClassLoaderAware
Adapted CrudMethodMetadataPostProcessor to be able to use the EntityViewManager so that we can safely determine if a class is an entity view.
Since:
1.6.9
Author:
Oliver Gierke, Thomas Darimont, Christoph Strobl, Christian Beikov, Eugen Mayer
  • Constructor Details

    • EntityViewAwareCrudMethodMetadataPostProcessor

      public EntityViewAwareCrudMethodMetadataPostProcessor()
  • Method Details

    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • postProcess

      public void postProcess(org.springframework.aop.framework.ProxyFactory factory, org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
      Specified by:
      postProcess in interface org.springframework.data.repository.core.support.RepositoryProxyPostProcessor
    • getCrudMethodMetadata

      public EntityViewAwareCrudMethodMetadata getCrudMethodMetadata()
      Returns a CrudMethodMetadata proxy that will lookup the actual target object by obtaining a thread bound instance from the TransactionSynchronizationManager later.