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

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

public final class QualifiedIndexCmd
extends AbstractSisuIndex
implements QualifiedTypeListener

Command-line utility that can generate META-INF/sisu index files for a space-separated list of JARs.


Constructor Summary
QualifiedIndexCmd()
           
 
Method Summary
protected  java.io.Reader getReader(java.lang.String path)
          Creates a new reader for the given input path.
protected  java.io.Writer getWriter(java.lang.String path)
          Creates a new writer for the given output path.
 void hear(java.lang.annotation.Annotation qualifier, java.lang.Class<?> qualifiedType, java.lang.Object source)
          Invoked when the QualifiedTypeVisitor finds a qualified type.
protected  void info(java.lang.String message)
          Reports an informational message.
static void main(java.lang.String[] args)
           
protected  void warn(java.lang.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
 

Constructor Detail

QualifiedIndexCmd

public QualifiedIndexCmd()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

hear

public void hear(java.lang.annotation.Annotation qualifier,
                 java.lang.Class<?> qualifiedType,
                 java.lang.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
qualifiedType - The qualified type
source - The source of this type
See Also:
Binder.withSource(Object)

info

protected void info(java.lang.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(java.lang.String message)
Description copied from class: AbstractSisuIndex
Reports a warning message.

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

getReader

protected java.io.Reader getReader(java.lang.String path)
                            throws java.io.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:
java.io.IOException

getWriter

protected java.io.Writer getWriter(java.lang.String path)
                            throws java.io.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:
java.io.IOException


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