Java Doc for LocalCompassBean.java in  » Search-Engine » compass-2.0 » org » compass » spring » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » compass 2.0 » org.compass.spring 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.compass.spring.LocalCompassBean

LocalCompassBean
public class LocalCompassBean implements FactoryBean,InitializingBean,DisposableBean,BeanNameAware(Code)

author:
   kimchy


Field Summary
final protected static  Loglog
    


Method Summary
public  voidafterPropertiesSet()
    
public  voiddestroy()
    
protected  ClassLoadergetClassLoader()
    
public  ObjectgetObject()
    
public  ClassgetObjectType()
    
public  booleanisSingleton()
    
protected  CompassnewCompass(CompassConfiguration config)
    
protected  CompassConfigurationnewConfiguration()
    
public  voidsetBeanName(String beanName)
    
public  voidsetClassMappings(String[] classMappings)
     Sets the fully qualified class names for mappings.
public  voidsetCompassConfiguration(CompassConfiguration config)
    
public  voidsetCompassSettings(Properties compassSettings)
    
public  voidsetConfigLocation(Resource configLocation)
     Set the location of the Compass XML config file, for example as classpath resource "classpath:compass.cfg.xml".
public  voidsetConfigLocations(Resource[] configLocations)
     Set the location of the Compass XML config file, for example as classpath resource "classpath:compass.cfg.xml".
public  voidsetConnection(Resource connection)
     Sets an optional connection based on Spring Resource abstraction.
public  voidsetConvertersByName(Map convertersByName)
     Sets a map of global converters to be registered with compass.
public  voidsetDataSource(DataSource dataSource)
     Sets a DataSource to be used when the index is stored within a database. The data source must be used with org.compass.core.lucene.engine.store.jdbc.ExternalDataSourceProvider for externally configured data sources (such is the case some of the time with spring).
public  voidsetMappingResolvers(InputStreamMappingResolver[] mappingResolvers)
     Sets the mapping resolvers the resolved Compass mapping definitions.
public  voidsetPostProcessor(LocalCompassBeanPostProcessor postProcessor)
     Allows to register a post processor for the Compass configuration.
public  voidsetResourceDirectoryLocations(Resource[] resourceDirectoryLocations)
     Set locations of directories that contain Compass mapping resources, like "WEB-INF/mappings".
public  voidsetResourceJarLocations(Resource[] resourceJarLocations)
     Set locations of jar files that contain Compass resources, like "WEB-INF/lib/example.jar".
public  voidsetResourceLocations(Resource[] resourceLocations)
     Set locations of Compass resource files (mapping and common metadata), for example as classpath resource "classpath:example.cpm.xml".
public  voidsetTransactionManager(PlatformTransactionManager transactionManager)
     Sets Spring PlatformTransactionManager to be used with compass.

Field Detail
log
final protected static Log log(Code)





Method Detail
afterPropertiesSet
public void afterPropertiesSet() throws Exception(Code)



destroy
public void destroy() throws Exception(Code)



getClassLoader
protected ClassLoader getClassLoader()(Code)



getObject
public Object getObject() throws Exception(Code)



getObjectType
public Class getObjectType()(Code)



isSingleton
public boolean isSingleton()(Code)



newCompass
protected Compass newCompass(CompassConfiguration config) throws CompassException(Code)



newConfiguration
protected CompassConfiguration newConfiguration()(Code)



setBeanName
public void setBeanName(String beanName)(Code)



setClassMappings
public void setClassMappings(String[] classMappings)(Code)
Sets the fully qualified class names for mappings. Useful when using annotations for example. Will also try to load the matching "[Class].cpm.xml" file.



setCompassConfiguration
public void setCompassConfiguration(CompassConfiguration config)(Code)



setCompassSettings
public void setCompassSettings(Properties compassSettings)(Code)



setConfigLocation
public void setConfigLocation(Resource configLocation)(Code)
Set the location of the Compass XML config file, for example as classpath resource "classpath:compass.cfg.xml".

Note: Can be omitted when all necessary properties and mapping resources are specified locally via this bean.




setConfigLocations
public void setConfigLocations(Resource[] configLocations)(Code)
Set the location of the Compass XML config file, for example as classpath resource "classpath:compass.cfg.xml".

Note: Can be omitted when all necessary properties and mapping resources are specified locally via this bean.




setConnection
public void setConnection(Resource connection)(Code)
Sets an optional connection based on Spring 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.




setConvertersByName
public void setConvertersByName(Map convertersByName)(Code)
Sets a map of global converters to be registered with compass. The map key will be the name that the converter will be registered against, and the value should be the Converter itself (natuarally configured using spring DI).



setDataSource
public void setDataSource(DataSource dataSource)(Code)
Sets a DataSource to be used when the index is stored within a database. The data source must be used with org.compass.core.lucene.engine.store.jdbc.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 if not already wrapped by one. org.springframework.jdbc.datasource.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://.




setMappingResolvers
public void setMappingResolvers(InputStreamMappingResolver[] mappingResolvers)(Code)
Sets the mapping resolvers the resolved Compass mapping definitions.



setPostProcessor
public void setPostProcessor(LocalCompassBeanPostProcessor postProcessor)(Code)
Allows to register a post processor for the Compass configuration.
Parameters:
  postProcessor -



setResourceDirectoryLocations
public void setResourceDirectoryLocations(Resource[] resourceDirectoryLocations)(Code)
Set locations of directories that contain Compass mapping resources, like "WEB-INF/mappings".

Can be used to add to mappings from a Compass XML config file, or to specify all mappings locally.




setResourceJarLocations
public void setResourceJarLocations(Resource[] resourceJarLocations)(Code)
Set locations of jar files that contain Compass resources, like "WEB-INF/lib/example.jar".

Can be used to add to mappings from a Compass XML config file, or to specify all mappings locally.




setResourceLocations
public void setResourceLocations(Resource[] resourceLocations)(Code)
Set locations of Compass resource files (mapping and common metadata), for example as classpath resource "classpath:example.cpm.xml". Supports any resource location via Spring's resource abstraction, for example relative paths like "WEB-INF/mappings/example.hbm.xml" when running in an application context.

Can be used to add to mappings from a Compass XML config file, or to specify all mappings locally.




setTransactionManager
public void setTransactionManager(PlatformTransactionManager transactionManager)(Code)
Sets Spring PlatformTransactionManager to be used with compass. If using org.compass.spring.transaction.SpringSyncTransactionFactory , it must be set.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.