org.ow2.util.archive.impl
Class URLArchiveFactory

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

public class URLArchiveFactory
extends Object
implements IArchiveFactory<URL>

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

Author:
Florent Benoit

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

Constructor Detail

URLArchiveFactory

public URLArchiveFactory()
Method Detail

create

public IArchive create(URL url)
Creates an EZBArchive object for the given object.

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

getSupportedClass

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


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