org.sonatype.guice.bean.scanners.index
Class SisuIndex

java.lang.Object
  extended by org.sonatype.guice.bean.scanners.index.AbstractSisuIndex
      extended by org.sonatype.guice.bean.scanners.index.SisuIndex
All Implemented Interfaces:
QualifiedTypeListener

public final class SisuIndex
extends AbstractSisuIndex
implements QualifiedTypeListener

Command-line utility that generates a qualified class index for a space-separated list of JARs.


Field Summary
static String NAMED
           
 
Constructor Summary
SisuIndex(File targetDirectory)
           
 
Method Summary
protected  Reader getReader(String path)
          Creates a new reader for the given input path.
protected  Writer getWriter(String path)
          Creates a new writer for the given output path.
 void hear(Annotation qualifier, Class<?> qualifiedType, Object source)
          Invoked when the QualifiedTypeVisitor finds a qualified type.
 void index(ClassSpace space)
           
protected  void info(String message)
          Reports an informational message.
static void main(String[] args)
           
protected  void warn(String message)
          Reports a warning message.
 
Methods inherited from class org.sonatype.guice.bean.scanners.index.AbstractSisuIndex
addClassToIndex, flushIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMED

public static final String NAMED
Constructor Detail

SisuIndex

public SisuIndex(File targetDirectory)
Method Detail

main

public static void main(String[] args)

index

public void index(ClassSpace space)

hear

public void hear(Annotation qualifier,
                 Class<?> qualifiedType,
                 Object source)
Description copied from interface: QualifiedTypeListener
Invoked when the QualifiedTypeVisitor finds a qualified type.

Specified by:
hear in interface QualifiedTypeListener
Parameters:
qualifier - The qualifier (unused)
qualifiedType - The qualified type
source - The source of this type
See Also:
Binder.withSource(Object)

info

protected void info(String message)
Description copied from class: AbstractSisuIndex
Reports an informational message.

Specified by:
info in class AbstractSisuIndex
Parameters:
message - The message

warn

protected void warn(String message)
Description copied from class: AbstractSisuIndex
Reports a warning message.

Specified by:
warn in class AbstractSisuIndex
Parameters:
message - The message

getReader

protected Reader getReader(String path)
                    throws IOException
Description copied from class: AbstractSisuIndex
Creates a new reader for the given input path.

Specified by:
getReader in class AbstractSisuIndex
Parameters:
path - The input path
Returns:
The relevant reader
Throws:
IOException

getWriter

protected Writer getWriter(String path)
                    throws IOException
Description copied from class: AbstractSisuIndex
Creates a new writer for the given output path.

Specified by:
getWriter in class AbstractSisuIndex
Parameters:
path - The output path
Returns:
The relevant writer
Throws:
IOException


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.