org.apache.chemistry.opencmis.server.impl.dummy
Class DummyServicesFactory

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
      extended by org.apache.chemistry.opencmis.server.impl.dummy.DummyServicesFactory
All Implemented Interfaces:
CmisServiceFactory

public class DummyServicesFactory
extends AbstractServiceFactory

Implementation of a repository factory without back-end for test purposes.


Constructor Summary
DummyServicesFactory()
           
 
Method Summary
 void destroy()
          Cleans up the the factory instance.
 CmisService getService(CallContext context)
          Returns a CmisService object for the given CallContext.
 void init(java.util.Map<java.lang.String,java.lang.String> parameters)
          Initializes the factory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyServicesFactory

public DummyServicesFactory()
Method Detail

init

public void init(java.util.Map<java.lang.String,java.lang.String> parameters)
Description copied from interface: CmisServiceFactory
Initializes the factory instance.

Specified by:
init in interface CmisServiceFactory
Overrides:
init in class AbstractServiceFactory

destroy

public void destroy()
Description copied from interface: CmisServiceFactory
Cleans up the the factory instance.

Specified by:
destroy in interface CmisServiceFactory
Overrides:
destroy in class AbstractServiceFactory

getService

public CmisService getService(CallContext context)
Description copied from interface: CmisServiceFactory
Returns a CmisService object for the given CallContext. When the CmisService object is not longer needed CmisService.close() will be called.

Specified by:
getService in interface CmisServiceFactory
Specified by:
getService in class AbstractServiceFactory


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