org.ow2.util.ee.deploy.impl.archive
Class ArchiveManager

java.lang.Object
  extended by org.ow2.util.ee.deploy.impl.archive.ArchiveManager

public final class ArchiveManager
extends java.lang.Object

Creates an archive for the given type.

Author:
Florent Benoit

Method Summary
 void addFactory(org.ow2.util.ee.deploy.api.archive.ArchiveFactory factory)
          Adds the given factory on this manager.
 org.ow2.util.ee.deploy.api.archive.IArchive getArchive(java.lang.Object o)
          Creates an EZBArchive implementation object for the given object.
static ArchiveManager getInstance()
          Gets the unique instance of this class.
 void removeFactory(org.ow2.util.ee.deploy.api.archive.ArchiveFactory 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(org.ow2.util.ee.deploy.api.archive.ArchiveFactory 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.

removeFactory

public void removeFactory(org.ow2.util.ee.deploy.api.archive.ArchiveFactory 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.

getArchive

public org.ow2.util.ee.deploy.api.archive.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.


Copyright © 2007 OW2 Consortium. All Rights Reserved.