|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BuildContext
Build context that can be used by some services at initialization.
| Method Summary | ||
|---|---|---|
IndexManagerHolder |
getAllIndexesManager()
|
|
ErrorHandler |
getErrorHandler()
Back-ends processing work asynchronously should catch all eventual errors in the ErrorHandler
to avoid losing information about the failing index updates. |
|
String |
getIndexingStrategy()
Returns the configured indexing strategy (event vs manual). |
|
ServiceManager |
getServiceManager()
Access the ServiceManager. |
|
SearchFactoryImplementor |
getUninitializedSearchFactory()
Returns the SessionFactoryImplementor instance. |
|
void |
releaseService(Class<? extends ServiceProvider<?>> provider)
Deprecated. use getServiceManager() instead |
|
|
requestService(Class<? extends ServiceProvider<T>> provider)
Deprecated. use getServiceManager() instead |
|
| Method Detail |
|---|
SearchFactoryImplementor getUninitializedSearchFactory()
SessionFactoryImplementor instance. Do not use until after the initialize and/or start method is
fully executed.
Implementations should not cache values provided by the SessionFactoryImplementor, but rather access them
each time, because the configuration can be dynamically updated and new changes made available.
For example, prefer:
void method() {
int size = sfi.getDirectoryProviders().size();
}
over
void method() {
int size = directoryProviders.size();
}
where directoryProviders is a class variable.
String getIndexingStrategy()
Environment.INDEXING_STRATEGY@Deprecated <T> T requestService(Class<? extends ServiceProvider<T>> provider)
getServiceManager() instead
T - class of the serviceprovider - of the service
@Deprecated void releaseService(Class<? extends ServiceProvider<?>> provider)
getServiceManager() instead
provider - of the serviceServiceManager getServiceManager()
ServiceManager.
Clients should keep a reference to the ServiceManager to allow for cleanup, but should not keep a reference
to the BuildContext.
IndexManagerHolder getAllIndexesManager()
IndexManagerHolder, storing all IndexManager instances.ErrorHandler getErrorHandler()
ErrorHandler
to avoid losing information about the failing index updates.
ErrorHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||