org.hibernate.search.infinispan.impl
Class InfinispanConfigurationParser
java.lang.Object
org.hibernate.search.infinispan.impl.InfinispanConfigurationParser
public class InfinispanConfigurationParser
- extends Object
The Infinispan configuration is ClassLoader sensitive, this wrapper around
the standard Parser is used to allow it to find resources in a modular
classloading environment.
- Since:
- 4.3
- Author:
- Sanne Grinovero
Method Summary |
org.infinispan.configuration.parsing.ConfigurationBuilderHolder |
parseFile(String filename)
Resolves an Infinispan configuration file but using the Hibernate Search
classloader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfinispanConfigurationParser
public InfinispanConfigurationParser(ClassLoader searchConfigClassloader)
parseFile
public org.infinispan.configuration.parsing.ConfigurationBuilderHolder parseFile(String filename)
throws IOException
- Resolves an Infinispan configuration file but using the Hibernate Search
classloader. The returned Infinispan configuration template also overrides
Infinispan's runtime classloader to the one of Hibernate Search.
- Parameters:
filename
- Infinispan configuration resource name
- Returns:
-
- Throws:
IOException
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved