org.hibernate.search.cfg
public class: SearchConfigurationFromHibernateCore [javadoc |
source]
java.lang.Object
org.hibernate.search.cfg.SearchConfigurationFromHibernateCore
All Implemented Interfaces:
SearchConfiguration
Search configuration implementation wrapping an Hibernate Core configuration
- author:
Emmanuel - Bernard
| Method from org.hibernate.search.cfg.SearchConfigurationFromHibernateCore Detail: |
public Class getClassMapping(String name) {
return cfg.getClassMapping( name ).getMappedClass();
}
|
public Iterator getClassMappings() {
return new ClassIterator( cfg.getClassMappings() );
}
|
public Properties getProperties() {
return cfg.getProperties();
}
|
public String getProperty(String propertyName) {
return cfg.getProperty( propertyName );
}
|
public ReflectionManager getReflectionManager() {
if ( reflectionManager == null ) {
try {
//TODO introduce a ReflectionManagerHolder interface to avoid reflection
//I want to avoid hard link between HAN and Validator for such a simple need
//reuse the existing reflectionManager one when possible
reflectionManager =
(ReflectionManager) cfg.getClass().getMethod( "getReflectionManager" ).invoke( cfg );
}
catch (Exception e) {
reflectionManager = new JavaReflectionManager();
}
}
return reflectionManager;
}
|