public class DelegatingObjectPersisterFactory extends Object implements ObjectPersisterFactory
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.Constructor and Description |
---|
DelegatingObjectPersisterFactory(List<ObjectPersisterFactory> delegateFactories,
ObjectPersisterFactory defaultFactory) |
Modifier and Type | Method and Description |
---|---|
ObjectPersister |
createPersisterFor(ImportedObject importedObject)
Creates a new persister for the given
ImportedObject . |
public DelegatingObjectPersisterFactory(List<ObjectPersisterFactory> delegateFactories, ObjectPersisterFactory defaultFactory)
public ObjectPersister createPersisterFor(ImportedObject importedObject)
ObjectPersisterFactory
ImportedObject
.createPersisterFor
in interface ObjectPersisterFactory
importedObject
- the object to persist.ObjectPersister
, or null if none could be found.Copyright © 2003–2015 Atlassian. All rights reserved.