org.ow2.util.archive.impl
Class ArchiveManager

java.lang.Object
  extended by org.ow2.util.archive.impl.ArchiveManager
All Implemented Interfaces:
IArchiveManager

public final class ArchiveManager
extends Object
implements IArchiveManager

Creates an archive for the given type.

Author:
Florent Benoit

Method Summary
 void addFactory(IArchiveFactory<?> factory)
          Adds the given factory on this manager.
 IArchive getArchive(Object o)
          Creates an EZBArchive implementation object for the given object.
static ArchiveManager getInstance()
          Gets the unique instance of this class.
 void removeFactory(IArchiveFactory<?> factory)
          Removes the given factory on this manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ArchiveManager getInstance()
Gets the unique instance of this class.

Returns:
the unique instance.

addFactory

public void addFactory(IArchiveFactory<?> factory)
Adds the given factory on this manager. It will look the generic info used by this class to find the class object managed by this factory.

Specified by:
addFactory in interface IArchiveManager
Parameters:
factory - the factory to add.

removeFactory

public void removeFactory(IArchiveFactory<?> factory)
Removes the given factory on this manager. It will look the generic info used by this class to find the class object managed by this factory.

Specified by:
removeFactory in interface IArchiveManager
Parameters:
factory - the factory to remove.

getArchive

public IArchive getArchive(Object o)
Creates an EZBArchive implementation object for the given object.

Specified by:
getArchive in interface IArchiveManager
Parameters:
o - object to wrap into an EZBArchive.
Returns:
the created archive.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.