|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.persistence.util.ExtendedLocalCompassBean
public class ExtendedLocalCompassBean
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
ExtendedLocalCompassBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
protected java.lang.ClassLoader |
getClassLoader()
|
java.lang.Object |
getObject()
|
java.lang.Class |
getObjectType()
|
boolean |
isSingleton()
|
protected org.compass.core.Compass |
newCompass(org.compass.core.config.CompassConfiguration config)
|
protected org.compass.core.config.CompassConfiguration |
newConfiguration()
|
protected void |
scanPackages(org.compass.core.config.CompassConfiguration config)
Perform Spring-based scanning for entity classes. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setBeanClassLoader(java.lang.ClassLoader classLoader)
|
void |
setBeanName(java.lang.String beanName)
|
void |
setClassMappings(java.lang.String[] classMappings)
Sets the fully qualified class names for mappings. |
void |
setCompassConfiguration(org.compass.core.config.CompassConfiguration config)
|
void |
setCompassSettings(java.util.Properties compassSettings)
|
void |
setConfigLocation(org.springframework.core.io.Resource configLocation)
Set the location of the Compass XML config file, for example as classpath resource "classpath:compass.cfg.xml". |
void |
setConfigLocations(org.springframework.core.io.Resource[] configLocations)
Set the location of the Compass XML config file, for example as classpath resource "classpath:compass.cfg.xml". |
void |
setConnection(org.springframework.core.io.Resource connection)
Sets an optional connection based on Spring Resource
abstraction. |
void |
setConvertersByName(java.util.Map<java.lang.String,org.compass.core.converter.Converter> convertersByName)
Sets a map of global converters to be registered with compass. |
void |
setDataSource(javax.sql.DataSource dataSource)
Sets a DataSource to be used when the index is stored within
a database. |
void |
setMappingResolvers(org.compass.core.config.InputStreamMappingResolver[] mappingResolvers)
Sets the mapping resolvers the resolved Compass mapping definitions. |
void |
setMappingScan(java.lang.String basePackage)
|
void |
setPackagesToScan(java.lang.String[] packagesToScan)
Set whether to use Spring-based scanning for entity classes in the classpath instead of listing annotated classes explicitly. |
void |
setPostProcessor(org.compass.spring.LocalCompassBeanPostProcessor postProcessor)
Allows to register a post processor for the Compass configuration. |
void |
setResourceDirectoryLocations(org.springframework.core.io.Resource[] resourceDirectoryLocations)
Set locations of directories that contain Compass mapping resources, like "WEB-INF/mappings". |
void |
setResourceJarLocations(org.springframework.core.io.Resource[] resourceJarLocations)
Set locations of jar files that contain Compass resources, like "WEB-INF/lib/example.jar". |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
|
void |
setResourceLocations(org.springframework.core.io.Resource[] resourceLocations)
Set locations of Compass resource files (mapping and common metadata), for example as classpath resource "classpath:example.cpm.xml". |
void |
setSettings(java.util.Map<java.lang.String,java.lang.Object> settings)
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Sets Spring PlatformTransactionManager to be used with
compass. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ExtendedLocalCompassBean()
| Method Detail |
|---|
public void setPackagesToScan(java.lang.String[] packagesToScan)
Default is none. Specify packages to search for autodetection of your
entity classes in the classpath. This is analogous to Spring's
component-scan feature (
org.springframework.context.annotation.ClassPathBeanDefinitionScanner
).
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void setPostProcessor(org.compass.spring.LocalCompassBeanPostProcessor postProcessor)
public void setBeanName(java.lang.String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAware
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setConnection(org.springframework.core.io.Resource connection)
Resource
abstraction. Will be used if none is set as part of other possible
configuration of Compass connection.
Will use Resource#getFile in order to get the absolute path.
public void setConfigLocation(org.springframework.core.io.Resource configLocation)
public void setConfigLocations(org.springframework.core.io.Resource[] configLocations)
public void setMappingScan(java.lang.String basePackage)
CompassConfiguration.addScan(String)public void setCompassSettings(java.util.Properties compassSettings)
public void setSettings(java.util.Map<java.lang.String,java.lang.Object> settings)
public void setResourceLocations(org.springframework.core.io.Resource[] resourceLocations)
public void setResourceJarLocations(org.springframework.core.io.Resource[] resourceJarLocations)
public void setResourceDirectoryLocations(org.springframework.core.io.Resource[] resourceDirectoryLocations)
public void setClassMappings(java.lang.String[] classMappings)
public void setMappingResolvers(org.compass.core.config.InputStreamMappingResolver[] mappingResolvers)
public void setDataSource(javax.sql.DataSource dataSource)
DataSource to be used when the index is stored within
a database. The data source must be used with
ExternalDataSourceProvider
for externally configured data sources (such is the case some of the time
with spring). If set, Compass data source provider does not have to be
set, since it will automatically default to
ExternalDataSourceProvider. If the compass data source
provider is set as a compass setting, it will be used.
Note, that it will be automatically wrapped with Spring's
TransactionAwareDataSourceProxy.
Also note that setting the data source is not enough to configure Compass
to store the index within the database, the Compass connection string
should also be set to jdbc://.
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
PlatformTransactionManager to be used with
compass. If using
SpringSyncTransactionFactory, it
must be set.
public void setConvertersByName(java.util.Map<java.lang.String,org.compass.core.converter.Converter> convertersByName)
public void setCompassConfiguration(org.compass.core.config.CompassConfiguration config)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected org.compass.core.config.CompassConfiguration newConfiguration()
protected org.compass.core.Compass newCompass(org.compass.core.config.CompassConfiguration config)
throws org.compass.core.CompassException
org.compass.core.CompassException
public java.lang.Object getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBeanjava.lang.Exceptionpublic java.lang.Class getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean
public void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionprotected java.lang.ClassLoader getClassLoader()
protected void scanPackages(org.compass.core.config.CompassConfiguration config)
setPackagesToScan(java.lang.String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||