|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.engine.impl.EmptyBuildContext
@Deprecated public class EmptyBuildContext
Lazily loaded Services might need a BuilContext to retrieve additional services;
in such a case we can wrap a reference to a ServiceManager and a
SearchFactoryImplementor to create a limited BuildContext:
we're out of the boot phase at this point so not all operations are legal.
This isn't great design but we need it to temporarily keep backwards compatibility,
so this class was deprecated since it's first version.
| Constructor Summary | |
|---|---|
EmptyBuildContext(ServiceManager delegate,
SearchFactoryImplementor searchFactory)
Deprecated. |
|
| Method Summary | ||
|---|---|---|
IndexManagerHolder |
getAllIndexesManager()
Deprecated. To not be used on this BuildContext implementation. |
|
ErrorHandler |
getErrorHandler()
Deprecated. To not be used on this BuildContext implementation. |
|
String |
getIndexingStrategy()
Deprecated. To not be used on this BuildContext implementation. |
|
ServiceManager |
getServiceManager()
Deprecated. Access the ServiceManager. |
|
SearchFactoryImplementor |
getUninitializedSearchFactory()
Deprecated. Returns the SessionFactoryImplementor instance. |
|
void |
releaseService(Class<? extends ServiceProvider<?>> provider)
Deprecated. |
|
|
requestService(Class<? extends ServiceProvider<T>> provider)
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyBuildContext(ServiceManager delegate,
SearchFactoryImplementor searchFactory)
| Method Detail |
|---|
@Deprecated public <T> T requestService(Class<? extends ServiceProvider<T>> provider)
BuildContext
requestService in interface BuildContextT - class of the serviceprovider - of the service
@Deprecated public void releaseService(Class<? extends ServiceProvider<?>> provider)
BuildContext
releaseService in interface BuildContextprovider - of the servicepublic ServiceManager getServiceManager()
BuildContext
getServiceManager in interface BuildContextpublic SearchFactoryImplementor getUninitializedSearchFactory()
BuildContext
void method() {
int size = sfi.getDirectoryProviders().size();
}
to
void method() {
int size = directoryProviders.size();
}
where directoryProviders is a class variable.
getUninitializedSearchFactory in interface BuildContextpublic String getIndexingStrategy()
getIndexingStrategy in interface BuildContextSearchException - Always thrown.public IndexManagerHolder getAllIndexesManager()
getAllIndexesManager in interface BuildContextSearchException - Always thrown.public ErrorHandler getErrorHandler()
getErrorHandler in interface BuildContextSearchException - Always thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||