@groovy.transform.InheritConstructors class Neo4jDataStoreSpringInitializer extends AbstractDatastoreInitializer
An AbstractDatastoreInitializer used for initializing GORM for Neo4j when using Spring. If you are not using the Spring container then using the constructors of Neo4jDatastore is preferable
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
DATASTORE_TYPE |
|
protected groovy.lang.Closure |
defaultMapping |
| Fields inherited from class | Fields |
|---|---|
class AbstractDatastoreInitializer |
ENTITY_CLASS_RESOURCE_PATTERN, OSIV_CLASS_NAME, TRANSACTION_MANAGER_BEAN, WEB_APPLICATION_CONTEXT_CLASS_NAME, classLoader, secondaryDatastore |
| Properties inherited from class | Properties |
|---|---|
class AbstractDatastoreInitializer |
configuration, originalConfiguration, packages, persistentClasses, registerApplicationIfNotPresent, resourcePatternResolver |
| Constructor and description |
|---|
Neo4jDataStoreSpringInitializer() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
groovy.lang.Closure |
getBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) |
|
protected java.lang.Class<AbstractDatastorePersistenceContextInterceptor> |
getPersistenceInterceptorClass() |
|
protected boolean |
isMappedClass(java.lang.String datastoreType, java.lang.Class cls) |
|
protected boolean |
isWebApplicationRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)Determines whether the given registry belongs to a web application. |
|
void |
setDefaultMapping(groovy.lang.Closure defaultMapping)Sets the default Neo4j GORM mapping configuration |
Determines whether the given registry belongs to a web application. The presence of the
dispatcherServlet bean definition is only a reliable signal after Spring Boot
auto-configuration has been processed; Grails 8 registers plugin bean definitions before
that, so the type of the registry (the web application context itself) is checked as well.
Mirrors AbstractDatastoreInitializer#isWebApplicationRegistry in
grails-datamapping-core; once this build depends on a version that ships it, this
override is redundant and can be removed.
registry - The bean definition registrySets the default Neo4j GORM mapping configuration