jPod PDF library

de.intarsys.pdf.app.annotation
Class StandardAnnotationOutlet

java.lang.Object
  extended by de.intarsys.pdf.app.annotation.StandardAnnotationOutlet
All Implemented Interfaces:
IAnnotationOutlet

public class StandardAnnotationOutlet
extends Object
implements IAnnotationOutlet

A VM singleton implementation for IAnnotationOutlet.

This implementation provides for a service provider style registration of IAnnotationFactory instances by default.


Method Summary
 IAnnotationFactory[] getAnnotationFactories()
          The list of all available IAnnotationFactory objects.
 boolean isLookupProviders()
           
 IAnnotationFactory lookupAnnotationFactory(COSName type)
          The IAnnotationFactory for the requested annotation type or null.
 void registerAnnotationFactory(IAnnotationFactory factory)
          Register a new IAnnotationFactory object.
 void setLookupProviders(boolean lookupProviders)
           
 void unregisterAnnotationFactory(IAnnotationFactory factory)
          Unregister a IAnnotationFactory object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnnotationFactories

public IAnnotationFactory[] getAnnotationFactories()
Description copied from interface: IAnnotationOutlet
The list of all available IAnnotationFactory objects. This is not the internal data structure, so you can not manipulate directly.

Specified by:
getAnnotationFactories in interface IAnnotationOutlet
Returns:
The list of all available IAnnotationFactory instances.

isLookupProviders

public boolean isLookupProviders()

lookupAnnotationFactory

public IAnnotationFactory lookupAnnotationFactory(COSName type)
Description copied from interface: IAnnotationOutlet
The IAnnotationFactory for the requested annotation type or null.

Specified by:
lookupAnnotationFactory in interface IAnnotationOutlet
Parameters:
type - An annotation type.
Returns:
The IAnnotationFactory for the requested annotation type or null.

registerAnnotationFactory

public void registerAnnotationFactory(IAnnotationFactory factory)
Description copied from interface: IAnnotationOutlet
Register a new IAnnotationFactory object.

Specified by:
registerAnnotationFactory in interface IAnnotationOutlet
Parameters:
factory - The factory object to be registered.

setLookupProviders

public void setLookupProviders(boolean lookupProviders)

unregisterAnnotationFactory

public void unregisterAnnotationFactory(IAnnotationFactory factory)
Description copied from interface: IAnnotationOutlet
Unregister a IAnnotationFactory object.

Specified by:
unregisterAnnotationFactory in interface IAnnotationOutlet
Parameters:
factory - The factory object to be deregistered.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.