@groovy.transform.CompileStatic abstract class AbstractDatastoreInitializer extends java.lang.Object
Abstract class for datastore initializers to implement
Modifiers | Name | Description |
---|---|---|
static class |
AbstractDatastoreInitializer.GrailsBeanBuilderInit |
|
static class |
AbstractDatastoreInitializer.GroovyBeanReaderInit |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
ENTITY_CLASS_RESOURCE_PATTERN |
|
static java.lang.String |
OSIV_CLASS_NAME |
|
static java.lang.String |
TRANSACTION_MANAGER_BEAN |
|
protected java.lang.ClassLoader |
classLoader |
|
protected boolean |
secondaryDatastore |
Type | Name and description |
---|---|
org.springframework.core.env.PropertyResolver |
configuration |
java.lang.Object |
originalConfiguration |
java.util.Collection<java.lang.String> |
packages |
java.util.Collection<java.lang.Class> |
persistentClasses |
boolean |
registerApplicationIfNotPresent |
org.springframework.core.io.support.PathMatchingResourcePatternResolver |
resourcePatternResolver |
Constructor and description |
---|
AbstractDatastoreInitializer
() |
AbstractDatastoreInitializer
(java.lang.ClassLoader classLoader, java.lang.String... packages) |
AbstractDatastoreInitializer
(java.lang.String... packages) |
AbstractDatastoreInitializer
(java.util.Collection<java.lang.Class> persistentClasses) |
AbstractDatastoreInitializer
(java.lang.Class... persistentClasses) |
AbstractDatastoreInitializer
(org.springframework.core.env.PropertyResolver configuration, java.util.Collection<java.lang.Class> persistentClasses) |
AbstractDatastoreInitializer
(org.springframework.core.env.PropertyResolver configuration, java.lang.Class... persistentClasses) |
AbstractDatastoreInitializer
(org.springframework.core.env.PropertyResolver configuration, java.lang.String... packages) |
AbstractDatastoreInitializer
(java.util.Map configuration, java.util.Collection<java.lang.Class> persistentClasses) |
AbstractDatastoreInitializer
(java.util.Map configuration, java.lang.Class... persistentClasses) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.util.Collection<java.lang.Class> |
collectMappedClasses(java.lang.String datastoreType) |
|
org.springframework.context.ApplicationContext |
configure() Configures for an existing Mongo instance |
|
void |
configureForBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) Configures an existing BeanDefinitionRegistry |
|
protected boolean |
containsRegisteredBean(java.lang.Object builder, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.lang.String beanName) |
|
org.springframework.context.ApplicationEventPublisher |
findEventPublisher(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) Finds the event publisher to use |
|
org.springframework.context.MessageSource |
findMessageSource(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) Finds the message source to use |
|
groovy.lang.Closure |
getAdditionalBeansConfiguration(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.lang.String type) Internal method aiding in datastore configuration. |
|
groovy.lang.Closure |
getBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) |
|
groovy.lang.Closure |
getCommonConfiguration(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.lang.String type) |
|
protected java.lang.Class |
getGrailsApplicationClass() |
|
protected java.lang.Class |
getGrailsValidatorClass() |
|
protected java.lang.Class<AbstractDatastorePersistenceContextInterceptor> |
getPersistenceInterceptorClass() @return The class used to define the persistence interceptor |
|
protected boolean |
isGrailsPresent() |
|
protected boolean |
isMappedClass(java.lang.String datastoreType, java.lang.Class cls) |
|
protected void |
scanForPersistentClasses() |
|
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
|
void |
setSecondaryDatastore(boolean secondaryDatastore) Whether this datastore is secondary to another primary datastore (example the SQL DB) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Configures for an existing Mongo instance
mongo
- The instance of MongoConfigures an existing BeanDefinitionRegistry
beanDefinitionRegistry
- The BeanDefinitionRegistry to configureFinds the event publisher to use
beanDefinitionRegistry
- The event publisherFinds the message source to use
beanDefinitionRegistry
- The registryInternal method aiding in datastore configuration.
registry
- The BeanDefinitionRegistrytype
- The type of the datastore
Whether this datastore is secondary to another primary datastore (example the SQL DB)