com.atlassian.confluence.importexport.xmlimport
Class DelegatingObjectPersisterFactory

java.lang.Object
  extended by 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.


Constructor Summary
DelegatingObjectPersisterFactory(List<ObjectPersisterFactory> delegateFactories, ObjectPersisterFactory defaultFactory)
           
 
Method Summary
 ObjectPersister createPersisterFor(ImportedObject importedObject)
          Creates a new persister for the given ImportedObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingObjectPersisterFactory

public DelegatingObjectPersisterFactory(List<ObjectPersisterFactory> delegateFactories,
                                        ObjectPersisterFactory defaultFactory)
Method Detail

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.


Copyright © 2003–2015 Atlassian. All rights reserved.