org.ow2.util.archive.impl
Class DefaultArchiveFactory

java.lang.Object
  extended by org.ow2.util.archive.impl.DefaultArchiveFactory
All Implemented Interfaces:
IArchiveFactory<File>

public class DefaultArchiveFactory
extends Object
implements IArchiveFactory<File>

Default factory that manages the file (jar file or directories).

Author:
Florent Benoit

Constructor Summary
DefaultArchiveFactory()
           
 
Method Summary
 IArchive create(File file)
          Creates an EZBArchive object for the given object.
 Class<File> getSupportedClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArchiveFactory

public DefaultArchiveFactory()
Method Detail

create

public IArchive create(File file)
Creates an EZBArchive object for the given object.

Specified by:
create in interface IArchiveFactory<File>
Parameters:
file - the file that this factory can manage.
Returns:
a new EZBArchive instance or null if it's not an archive

getSupportedClass

public Class<File> getSupportedClass()
Specified by:
getSupportedClass in interface IArchiveFactory<File>
Returns:
the type supported by the factory


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