Package com.levigo.jadice.web.server
Interface WebtoolkitServerContext
public interface WebtoolkitServerContext
Allows direct access to the core registries like
DocumentDataProviderRegistry and
AnnotationProfileRegistry. Additionally, it allows you
to configure/change the cache being used by the JWT and backing components.-
Method Summary
Modifier and TypeMethodDescriptionGets theAnnotationProfileRegistryimplementation which is used to addAnnotationProfiles to make them available to the jadice web toolkit.Gets theDocumentDataProviderRegistryimplementation which is used to registerDocumentDataProviders that define how to load documents.Gets anExecutorServicefor asynchronous processing of server operations and document load requests.voidsetAnnoImageProviders(List<AnnotationImageProvider> annoImageProviders) voidsetAnnotationService(com.levigo.jadice.web.server.internal.AnnotationService annotationService) voidsetDocumentDataProviderRegistry(DocumentDataProviderRegistry documentDataProviderRegistry) voidsetDocumentService(com.levigo.jadice.web.server.internal.DocumentService documentService) voidsetExecutorService(ExecutorService executorService) voidsetTextService(com.levigo.jadice.web.server.internal.TextService textService) voidsetTileRenderService(com.levigo.jadice.web.server.internal.TileRenderService tileRenderService)
-
Method Details
-
getDocumentDataProviderRegistry
DocumentDataProviderRegistry getDocumentDataProviderRegistry()Gets theDocumentDataProviderRegistryimplementation which is used to registerDocumentDataProviders that define how to load documents.- Returns:
- The registry to setup the
DocumentDataProviders forSources.
-
getAnnotationProfileRegistry
AnnotationProfileRegistry getAnnotationProfileRegistry()Gets theAnnotationProfileRegistryimplementation which is used to addAnnotationProfiles to make them available to the jadice web toolkit.- Returns:
- The registry to setup the
AnnotationProfiles.
-
getExecutorService
ExecutorService getExecutorService()Gets anExecutorServicefor asynchronous processing of server operations and document load requests.- Returns:
- the ExecutorService
-
setDocumentDataProviderRegistry
-
setExecutorService
-
setAnnotationService
void setAnnotationService(com.levigo.jadice.web.server.internal.AnnotationService annotationService) -
setDocumentService
void setDocumentService(com.levigo.jadice.web.server.internal.DocumentService documentService) -
setTextService
void setTextService(com.levigo.jadice.web.server.internal.TextService textService) -
setTileRenderService
void setTileRenderService(com.levigo.jadice.web.server.internal.TileRenderService tileRenderService) -
setAnnoImageProviders
-