Package com.levigo.jadice.web.server
Interface WebtoolkitServerContext
public interface WebtoolkitServerContext
Allows direct access to the core registries like
DocumentDataProviderRegistry
,
AnnotationProfileRegistry
and ServerOperationRegistry
. Additionally it allows you
to configure/change the cache being used by the JWT and backing components.-
Method Summary
Modifier and TypeMethodDescriptionGets theAnnotationProfileRegistry
implementation which is used to addAnnotationProfile
s to make them available to the jadice web toolkit.Gets theDocumentDataProviderRegistry
implementation which is used to registerDocumentDataProvider
s that define how to load documents.Gets anExecutorService
for asynchronous processing of server operations and document load requests.Gets theServerOperationRegistry
implementation which is used to addServerOperation
- for example, to save client side changed documents or annotations on the server.void
setAnnoImageProviders
(List<AnnotationImageProvider> annoImageProviders) void
setAnnotationService
(com.levigo.jadice.web.server.internal.AnnotationService annotationService) void
setDocumentDataProviderRegistry
(DocumentDataProviderRegistry documentDataProviderRegistry) void
setDocumentService
(com.levigo.jadice.web.server.internal.DocumentService documentService) void
setExecutorService
(ExecutorService executorService) void
setServerOperationRegistry
(ServerOperationRegistry serverOperationRegistry) void
setServerOperationService
(com.levigo.jadice.web.server.internal.serveroperation.ServerOperationService serverOperationService) void
setTextService
(com.levigo.jadice.web.server.internal.TextService textService) void
setTileRenderService
(com.levigo.jadice.web.server.internal.TileRenderService tileRenderService)
-
Method Details
-
getDocumentDataProviderRegistry
DocumentDataProviderRegistry getDocumentDataProviderRegistry()Gets theDocumentDataProviderRegistry
implementation which is used to registerDocumentDataProvider
s that define how to load documents.- Returns:
- The registry to setup the
DocumentDataProvider
s forSources
.
-
getServerOperationRegistry
ServerOperationRegistry getServerOperationRegistry()Gets theServerOperationRegistry
implementation which is used to addServerOperation
- for example, to save client side changed documents or annotations on the server.- Returns:
- The registry to setup the
ServerOperation
s.
-
getAnnotationProfileRegistry
AnnotationProfileRegistry getAnnotationProfileRegistry()Gets theAnnotationProfileRegistry
implementation which is used to addAnnotationProfile
s to make them available to the jadice web toolkit.- Returns:
- The registry to setup the
AnnotationProfiles
.
-
getExecutorService
ExecutorService getExecutorService()Gets anExecutorService
for 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
-
setServerOperationRegistry
-
setServerOperationService
void setServerOperationService(com.levigo.jadice.web.server.internal.serveroperation.ServerOperationService serverOperationService)
-