Class Neo4jCdiExtension

java.lang.Object
org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport
org.springframework.data.neo4j.config.Neo4jCdiExtension
All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension

@API(status=STABLE, since="6.0") public final class Neo4jCdiExtension extends CdiRepositoryExtensionSupport
This CDI extension enables Spring Data Neo4j on a CDI 2.0 compatible CDI container. It creates a Neo4j client, template and brings in the Neo4j repository mechanism as well. It is the main entry point to our CDI support.

It requires the presence of a Neo4j Driver bean. Other beans, like the Neo4jConversions can be overwritten by providing a producer of it. If such a producer or bean is added, it must not use any @Qualifier on the bean.

This CDI extension can be used either via a build in service loader mechanism or through building a context manually.

Since:
6.0
Author:
Michael J. Simons
  • Field Details

    • DEFAULT_BEAN

      public static final jakarta.enterprise.util.AnnotationLiteral<jakarta.enterprise.inject.Default> DEFAULT_BEAN
      An annotation literal used for selecting default CDI beans.
    • ANY_BEAN

      public static final jakarta.enterprise.util.AnnotationLiteral<jakarta.enterprise.inject.Any> ANY_BEAN
      An annotation literal used for selecting @Any annotated beans.
  • Constructor Details

    • Neo4jCdiExtension

      public Neo4jCdiExtension()