Class CollectionAwareProjectionFactory

java.lang.Object
org.springframework.data.projection.SpelAwareProxyProjectionFactory
org.springframework.data.jpa.projection.CollectionAwareProjectionFactory
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, org.springframework.data.projection.ProjectionFactory

public class CollectionAwareProjectionFactory extends org.springframework.data.projection.SpelAwareProxyProjectionFactory
A ProjectionFactory considering projections containing collections or maps to be open.
Author:
Jens Schauder, Oliver Gierke
  • Constructor Details

    • CollectionAwareProjectionFactory

      public CollectionAwareProjectionFactory()
  • Method Details

    • createProjectionInformation

      protected org.springframework.data.projection.ProjectionInformation createProjectionInformation(Class<?> projectionType)
      Overrides:
      createProjectionInformation in class org.springframework.data.projection.SpelAwareProxyProjectionFactory
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader arg0)
      Specified by:
      setBeanClassLoader in interface BeanClassLoaderAware
    • registerMethodInvokerFactory

      public void registerMethodInvokerFactory(org.springframework.data.projection.MethodInterceptorFactory arg0)
    • createProjection

      public <T extends Object> T createProjection(Class<T> arg0, Object arg1)
      Specified by:
      createProjection in interface org.springframework.data.projection.ProjectionFactory
    • createProjection

      public <T extends Object> T createProjection(Class<T> arg0)
      Specified by:
      createProjection in interface org.springframework.data.projection.ProjectionFactory
    • getProjectionInformation

      public final org.springframework.data.projection.ProjectionInformation getProjectionInformation(Class<?> arg0)
      Specified by:
      getProjectionInformation in interface org.springframework.data.projection.ProjectionFactory