public class SearchConfigurationFromHibernateCore extends SearchConfigurationBase implements SearchConfiguration
Constructor and Description |
---|
SearchConfigurationFromHibernateCore(Configuration cfg,
ClassLoaderService hibernateClassLoaderService) |
Modifier and Type | Method and Description |
---|---|
ClassLoaderService |
getClassLoaderService() |
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()
Returns the initializer to be used to initialize potentially lazy entities or collections.
|
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 Service>,Object> |
getProvidedServices()
Return the provided services.
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
Returns a reflection manager if already available in the environment
null otherwise
|
boolean |
isIndexMetadataComplete() |
isDeleteByTermEnforced, isIdProvidedImplicit, isTransactionManagerExpected
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDeleteByTermEnforced, isIdProvidedImplicit, isTransactionManagerExpected
public SearchConfigurationFromHibernateCore(Configuration cfg, ClassLoaderService hibernateClassLoaderService)
public Iterator<Class<?>> getClassMappings()
SearchConfiguration
getClassMappings
in interface SearchConfiguration
public Class<?> getClassMapping(String name)
SearchConfiguration
Class
from a String parameter.getClassMapping
in interface SearchConfiguration
name
- the class name as stringpublic String getProperty(String propertyName)
SearchConfiguration
getProperty
in interface SearchConfiguration
propertyName
- - as a String.public Properties getProperties()
SearchConfiguration
getProperties
in interface SearchConfiguration
object
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
SearchConfiguration
getReflectionManager
in interface SearchConfiguration
public SearchMapping getProgrammaticMapping()
getProgrammaticMapping
in interface SearchConfiguration
null
public Map<Class<? extends Service>,Object> getProvidedServices()
SearchConfiguration
Provided services are also not allowed to implement Startable
or
Stoppable
. An exception is thrown in this case.
getProvidedServices
in interface SearchConfiguration
public InstanceInitializer getInstanceInitializer()
SearchConfiguration
getInstanceInitializer
in interface SearchConfiguration
getInstanceInitializer
in class SearchConfigurationBase
public boolean isIndexMetadataComplete()
SearchConfigurationBase
In most cases it is safest to default to false
.
isIndexMetadataComplete
in interface SearchConfiguration
isIndexMetadataComplete
in class SearchConfigurationBase
true
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.public ClassLoaderService getClassLoaderService()
getClassLoaderService
in interface SearchConfiguration
ServiceManager
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved