org.hibernate.search.impl
Class DefaultIndexManagerFactory
java.lang.Object
org.hibernate.search.impl.DefaultIndexManagerFactory
- All Implemented Interfaces:
- IndexManagerFactory
public class DefaultIndexManagerFactory
- extends Object
- implements IndexManagerFactory
This is the default IndexManager implementation for Hibernate Search.
- Author:
- Sanne Grinovero (C) 2012 Red Hat Inc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIndexManagerFactory
public DefaultIndexManagerFactory()
createDefaultIndexManager
public IndexManager createDefaultIndexManager()
- Specified by:
createDefaultIndexManager
in interface IndexManagerFactory
- Returns:
- a new instance of the default IndexManager
createIndexManagerByName
public IndexManager createIndexManagerByName(String indexManagerImplementationName)
- Specified by:
createIndexManagerByName
in interface IndexManagerFactory
- Parameters:
indexManagerImplementationName
- how this is resolved to an IndexManager type
is left to the implementor.
- Returns:
- a new IndexManager instance of the chosen type
aliasToFQN
protected String aliasToFQN(String implName)
- Provide a way to expand known aliases to fully qualified class names.
As opposed to
fromAlias(String)
we can use this to expend to well
known implementations which are optional on the classpath.
- Parameters:
implName
-
- Returns:
- the same name, or a fully qualified class name to use instead
fromAlias
protected IndexManager fromAlias(String implName)
- Extension point: allow to override aliases or add new ones to
directly create class instances.
- Parameters:
implName
- the requested alias
- Returns:
null
if the alias is unknown.
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved