|
||||||||||
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()
For backends processing work asynchronously, they should catch all eventual errors in the ErrorHandler to avoid losing information about the lost updates. |
|
String |
getIndexingStrategy()
|
|
SearchFactoryImplementor |
getUninitializedSearchFactory()
Returns the SessionFactoryImplementor instance. |
|
void |
releaseService(Class<? extends ServiceProvider<?>> provider)
Release a service from duty. |
|
|
requestService(Class<? extends ServiceProvider<T>> provider)
Declare the use of a service. |
Method Detail |
---|
SearchFactoryImplementor getUninitializedSearchFactory()
void method() {
int size = sfi.getDirectoryProviders().size();
}
to
void method() {
int size = directoryProviders.size();
}
where directoryProviders is a class variable.
String getIndexingStrategy()
<T> T requestService(Class<? extends ServiceProvider<T>> provider)
T
- class of the serviceprovider
- of the service
void releaseService(Class<? extends ServiceProvider<?>> provider)
provider
- of the serviceIndexManagerHolder getAllIndexesManager()
ErrorHandler getErrorHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |