|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.archive.ArchiveManager
public final class ArchiveManager
Creates an archive for the given type.
Field Summary | |
---|---|
private static ArchiveManager |
archiveManager
Unique instance of this class. |
private java.util.Map<java.lang.Class,EZBArchiveFactory> |
factories
Mapping between class and the associated factories. ie : File <--> DefaultArchiveFactory. |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
private |
ArchiveManager()
Private constructor as only one instance is built. |
Method Summary | |
---|---|
void |
addFactory(EZBArchiveFactory factory)
Adds the given factory on this manager. |
EZBArchive |
getArchive(java.lang.Object o)
Creates an EZBArchive implementation object for the given object. |
static ArchiveManager |
getInstance()
Gets the unique instance of this class. |
private java.lang.Class |
getSupportedType(java.lang.Class factoryClass)
Determines the type supported by the given factory Class object. |
void |
removeFactory(EZBArchiveFactory 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 |
Field Detail |
---|
private static JLog logger
private static ArchiveManager archiveManager
private java.util.Map<java.lang.Class,EZBArchiveFactory> factories
Constructor Detail |
---|
private ArchiveManager()
Method Detail |
---|
public static ArchiveManager getInstance()
public void addFactory(EZBArchiveFactory factory)
factory
- the factory to add.private java.lang.Class getSupportedType(java.lang.Class factoryClass)
factoryClass
- EZBArchiveFactory sub Class.
public void removeFactory(EZBArchiveFactory factory)
factory
- the factory to remove.public EZBArchive getArchive(java.lang.Object o)
o
- object to wrap into an EZBArchive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |