org.hibernate.search.cfg.impl
public class SearchConfigurationFromHibernateCore extends SearchConfigurationBase implements SearchConfiguration
| Constructor and Description |
|---|
SearchConfigurationFromHibernateCore(Configuration cfg) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getClassMapping(String name)
Returns a
Class from a String parameter. |
Iterator<Class<?>> |
getClassMappings()
Returns an iterator over the list of indexed classes
|
InstanceInitializer |
getInstanceInitializer() |
SearchMapping |
getProgrammaticMapping() |
Properties |
getProperties()
Gets properties as a java.util.Properties object.
|
String |
getProperty(String propertyName)
Gets a configuration property from its name
or null if not present
|
Map<Class<? extends ServiceProvider<?>>,Object> |
getProvidedServices()
Provide service instances.
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
Returns a reflection manager if already available in the environment
null otherwise
|
boolean |
isIndexMetadataComplete()
Safest to default to false.
|
getIndexManagerFactory, isIdProvidedImplicit, isTransactionManagerExpectedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndexManagerFactory, isIdProvidedImplicit, isTransactionManagerExpectedpublic SearchConfigurationFromHibernateCore(Configuration cfg)
public Iterator<Class<?>> getClassMappings()
SearchConfigurationgetClassMappings in interface SearchConfigurationpublic Class<?> getClassMapping(String name)
SearchConfigurationClass from a String parameter.getClassMapping in interface SearchConfigurationname - the class name as stringpublic String getProperty(String propertyName)
SearchConfigurationgetProperty in interface SearchConfigurationpropertyName - - as a String.public Properties getProperties()
SearchConfigurationgetProperties in interface SearchConfigurationobjectpublic org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
SearchConfigurationgetReflectionManager in interface SearchConfigurationpublic SearchMapping getProgrammaticMapping()
getProgrammaticMapping in interface SearchConfigurationnullpublic Map<Class<? extends ServiceProvider<?>>,Object> getProvidedServices()
SearchConfigurationBuildContext.requestService(Class) API
Note that the lifecycle methods:
of the provider are *not* called.
For services using the same ServiceProvider class, provided services have priority
over managed services (ie the ones using the service locator pattern).getProvidedServices in interface SearchConfigurationpublic InstanceInitializer getInstanceInitializer()
getInstanceInitializer in interface SearchConfigurationgetInstanceInitializer in class SearchConfigurationBasepublic boolean isIndexMetadataComplete()
SearchConfigurationBaseisIndexMetadataComplete in interface SearchConfigurationisIndexMetadataComplete in class SearchConfigurationBasetrue if it is safe to assume that the information we have about
index metadata is accurate. This should be set to false for example if the index
could contain Documents related to types not known to this SearchFactory instance.Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved