com.atlassian.confluence.importexport.xmlimport
Class DelegatingObjectPersisterFactory
java.lang.Object
com.atlassian.confluence.importexport.xmlimport.DelegatingObjectPersisterFactory
- All Implemented Interfaces:
- ObjectPersisterFactory
public class DelegatingObjectPersisterFactory
- extends Object
- implements ObjectPersisterFactory
Factory to provide the correct ObjectPersister
for a given ImportedObject
. Guarantees not to return
null from createPersisterFor(com.atlassian.confluence.importexport.xmlimport.model.ImportedObject)
. Delegates
to a list of factories to create type-specific persisters.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingObjectPersisterFactory
public DelegatingObjectPersisterFactory(List<ObjectPersisterFactory> delegateFactories,
ObjectPersisterFactory defaultFactory)
createPersisterFor
public ObjectPersister createPersisterFor(ImportedObject importedObject)
- Description copied from interface:
ObjectPersisterFactory
- Creates a new persister for the given
ImportedObject
.
- Specified by:
createPersisterFor
in interface ObjectPersisterFactory
- Parameters:
importedObject
- the object to persist.
- Returns:
- the matching
ObjectPersister
, or null if none could be found.