org.apache.chemistry.opencmis.commons.impl.server
Class AbstractServiceFactory

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
All Implemented Interfaces:
CmisServiceFactory
Direct Known Subclasses:
DummyServicesFactory, FileShareServiceFactory, InMemoryServiceFactoryImpl, JcrServiceFactory

public abstract class AbstractServiceFactory
extends java.lang.Object
implements CmisServiceFactory


Constructor Summary
AbstractServiceFactory()
           
 
Method Summary
 void destroy()
          Cleans up the the factory instance.
abstract  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

AbstractServiceFactory

public AbstractServiceFactory()
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

destroy

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

Specified by:
destroy in interface CmisServiceFactory

getService

public abstract 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


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