org.apache.chemistry.opencmis.commons.server
Interface CmisServiceFactory


public interface CmisServiceFactory

Factory for CmisService objects.


Method Summary
 void destroy()
          Cleans up the the factory instance.
 int getMemoryThreshold()
          Returns up to which size content should be kept in memory.
 CmisService getService(CallContext context)
          Returns a CmisService object for the given CallContext.
 File getTempDirectory()
          Returns the absolute path of the directory that should be used for temporary files.
 void init(Map<String,String> parameters)
          Initializes the factory instance.
 

Method Detail

init

void init(Map<String,String> parameters)
Initializes the factory instance.


destroy

void destroy()
Cleans up the the factory instance.


getService

CmisService getService(CallContext context)
Returns a CmisService object for the given CallContext. When the CmisService object is not longer needed CmisService.close() will be called.


getTempDirectory

File getTempDirectory()
Returns the absolute path of the directory that should be used for temporary files.

Returns:
absolute path of temp directory

getMemoryThreshold

int getMemoryThreshold()
Returns up to which size content should be kept in memory. Documents bigger than this threshold will be cached in a temporary directory.

Returns:
the threshold in bytes
See Also:
getTempDirectory()


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.