org.glassfish.hk2.classmodel.reflect.util
Class AbstractAdapter

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.util.AbstractAdapter
All Implemented Interfaces:
Closeable, ArchiveAdapter
Direct Known Subclasses:
DirectoryArchive, InputStreamArchiveAdapter, JarArchive

public abstract class AbstractAdapter
extends Object
implements ArchiveAdapter

Common archive adapter implementation

Author:
Jerome Dochez

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.ArchiveAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector
 
Constructor Summary
AbstractAdapter()
           
 
Method Summary
 void onAllEntries(ArchiveAdapter.EntryTask task, Logger logger)
          perform a task on each archive entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.ArchiveAdapter
getManifest, getURI, onSelectedEntries
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

AbstractAdapter

public AbstractAdapter()
Method Detail

onAllEntries

public void onAllEntries(ArchiveAdapter.EntryTask task,
                         Logger logger)
                  throws IOException
Description copied from interface: ArchiveAdapter
perform a task on each archive entry

Specified by:
onAllEntries in interface ArchiveAdapter
Parameters:
task - the task to perform
logger - for any logging activity
Throws:
IOException - can be generated while reading the archive entries


Copyright © 2013 Oracle Corporation. All Rights Reserved.