org.ow2.util.archive.api
Interface IArchiveManager


public interface IArchiveManager

Interface of Archive Manager.

Author:
Francois Fornaciari

Method Summary
 void addFactory(IArchiveFactory<?> factory)
          Adds the given factory on this manager.
 IArchive getArchive(java.lang.Object o)
          Creates an EZBArchive implementation object for the given object.
 void removeFactory(IArchiveFactory<?> factory)
          Removes the given factory on this manager.
 

Method Detail

addFactory

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.

Parameters:
factory - the factory to add.

getArchive

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

Parameters:
o - object to wrap into an EZBArchive.
Returns:
the created archive.

removeFactory

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.

Parameters:
factory - the factory to remove.


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