public final class

SisuIndex

extends Object
implements QualifiedTypeListener
java.lang.Object
   ↳ org.eclipse.sisu.space.SisuIndex

Class Overview

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

The index consists of qualified class names listed in META-INF/sisu/javax.inject.Named.

Summary

Public Constructors
SisuIndex(File targetDirectory)
Public Methods
void hear(Class<?> qualifiedType, Object source)
Invoked when the QualifiedTypeVisitor finds a qualified type.
void index(ClassSpace space)
static void main(String[] args)
Protected Methods
synchronized final void addClassToIndex(Object anno, Object clazz)
Adds a new annotated class entry to the index.
synchronized final void flushIndex()
Writes the current index as a series of tables.
Reader getReader(String path)
Creates a new reader for the given input path.
Writer getWriter(String path)
Creates a new writer for the given output path.
void info(String message)
Reports an informational message.
void warn(String message)
Reports a warning message.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.eclipse.sisu.space.QualifiedTypeListener

Public Constructors

public SisuIndex (File targetDirectory)

Public Methods

public void hear (Class<?> qualifiedType, Object source)

Invoked when the QualifiedTypeVisitor finds a qualified type.

Parameters
qualifiedType The qualified type
source The source of this type

public void index (ClassSpace space)

public static void main (String[] args)

Protected Methods

protected final synchronized void addClassToIndex (Object anno, Object clazz)

Adds a new annotated class entry to the index.

Parameters
anno The annotation name
clazz The class name

protected final synchronized void flushIndex ()

Writes the current index as a series of tables.

protected Reader getReader (String path)

Creates a new reader for the given input path.

Parameters
path The input path
Returns
  • The relevant reader
Throws
IOException

protected Writer getWriter (String path)

Creates a new writer for the given output path.

Parameters
path The output path
Returns
  • The relevant writer
Throws
IOException

protected void info (String message)

Reports an informational message.

Parameters
message The message

protected void warn (String message)

Reports a warning message.

Parameters
message The message