de.unihalle.informatik.Alida.annotations.indexing
Class SezPozAdapter

java.lang.Object
  extended by de.unihalle.informatik.Alida.annotations.indexing.SezPozAdapter

public abstract class SezPozAdapter
extends java.lang.Object

Author:
moeller

Field Summary
private static java.lang.ClassLoader classloader
          Class loader to be used for searching SezPoz annotation indices.
protected static boolean debug
          For internal debugging purposes.
protected static boolean initDone
          Variable to check if init routine was called.
 
Constructor Summary
private SezPozAdapter()
          Default constructor, should not be called from outside.
 
Method Summary
static void initAdapter()
          Initialization routine for this class.
static void initAdapter(java.lang.ClassLoader cl)
          Initialization routine for this class.
static
<A extends java.lang.annotation.Annotation,I>
net.java.sezpoz.Index<A,I>
load(java.lang.Class<A> annotation, java.lang.Class<I> instanceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classloader

private static java.lang.ClassLoader classloader
Class loader to be used for searching SezPoz annotation indices.


debug

protected static boolean debug
For internal debugging purposes.


initDone

protected static boolean initDone
Variable to check if init routine was called.

Constructor Detail

SezPozAdapter

private SezPozAdapter()
Default constructor, should not be called from outside.

Method Detail

initAdapter

public static void initAdapter()
Initialization routine for this class.

This routine is to be called prior to accessing any of the methods of this class as it takes care of proper initialization of the class. If this does not happen, a warning is shown. Do not expect the class to work properly in that case.

Note that the method can be called multiple times during a session. However, changing initialization may change class behaviour.


initAdapter

public static void initAdapter(java.lang.ClassLoader cl)
Initialization routine for this class.

This routine is to be called prior to accessing any of the methods of this class as it takes care of proper initialization of the class. If this does not happen, a warning is shown. Do not expect the class to work properly in that case.

Note that the method can be called multiple times during a session. However, changing initialization may change class behaviour.

Parameters:
cl - Class loader to be used in accessing annotation indices.

load

public static <A extends java.lang.annotation.Annotation,I> net.java.sezpoz.Index<A,I> load(java.lang.Class<A> annotation,
                                                                                            java.lang.Class<I> instanceType)