|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.Abdera
public class Abdera
The top level entry point for Abdera that provides access to various subcomponents. Upon creation, this class will attempt to create singleton instances of each of the various subcomponents components. These instances may be retrieved using the appropriate get___ methods. Alternatively, new instances may be created using the appropriate new___ methods. Instances of the Abdera object, and it's direct children (Parser, Factory, XPath, etc) are Threadsafe. Because of the dynamic configuration model Abdera uses, creating a new instance of the Abdera object can be time consuming. It is, therefore, a good idea for applications to create only a single static instance of the Abdera object (see the Abdera.getInstance() method). Abdera's configuration model depends heavily on the context classloader. Extension Factories, custom writers, custom parsers, etc are all discovered automatically by searching the classpath. This means that care needs to be taken when using Abdera in environments that utilize multiple classloaders (such as Web application servers).
Constructor Summary | |
---|---|
Abdera()
Initialize using the default Abdera Configuration |
|
Abdera(org.apache.abdera.util.Configuration config)
Initialize using the specified Abdera Configuration |
Method Summary | |
---|---|
org.apache.abdera.util.Configuration |
getConfiguration()
Return the Abdera Configuration used to initialize this instance |
Factory |
getFactory()
Return the singleton instance of org.apache.abdera.factory.Factory |
static Abdera |
getInstance()
Get a static instance of the Abdera object. |
static Factory |
getNewFactory()
Return a new Factory instance using a non-shared Abdera object |
static Parser |
getNewParser()
Return a new Parser instance using a non-shared Abdera object |
static ParserFactory |
getNewParserFactory()
Return a new ParserFactory instance using a non-shared Abdera object |
static StreamWriter |
getNewStreamWriter()
Return a new instance of the default StreamWriter using a non-shared Abdera object |
static Writer |
getNewWriter()
Return a new instance of the default Writer using a non-shared Abdera object |
static WriterFactory |
getNewWriterFactory()
Return a new WriterFactory instance using a non-shared Abdera object |
static XPath |
getNewXPath()
Return a new XPath instance using a non-shared Abdera object |
Parser |
getParser()
Return the singleton instance of org.apache.abdera.parser.Parser |
ParserFactory |
getParserFactory()
Return the singleton instance of org.apache.abdera.parser.ParserFactory. |
Writer |
getWriter()
Return the singleton instance of the default org.apache.abdera.writer.Writer implementation. |
WriterFactory |
getWriterFactory()
Return the singleton instance of org.apache.abdera.writer.WriterFactory. |
XPath |
getXPath()
Return the singleton instance of org.apache.abdera.xpath.XPath |
Categories |
newCategories()
Create a new Categories instance. |
Entry |
newEntry()
Create a new Entry instance. |
Feed |
newFeed()
Create a new Feed instance. |
Service |
newService()
Create a new Service instance. |
StreamWriter |
newStreamWriter()
Return a new instance of the default org.apache.abdera.writer.Writer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Abdera()
public Abdera(org.apache.abdera.util.Configuration config)
config
- The Abdera Configuration to useMethod Detail |
---|
public static Abdera getInstance()
public Feed newFeed()
abdera.getFactory().newFeed()
public Entry newEntry()
abdera.getFactory().newEntry()
public Service newService()
abdera.getFactory().newService()
public Categories newCategories()
abdera.getFactory().newCategories()
public org.apache.abdera.util.Configuration getConfiguration()
public Factory getFactory()
public Parser getParser()
public XPath getXPath()
public ParserFactory getParserFactory()
public WriterFactory getWriterFactory()
public Writer getWriter()
public StreamWriter newStreamWriter()
public static Factory getNewFactory()
public static Parser getNewParser()
public static XPath getNewXPath()
public static ParserFactory getNewParserFactory()
public static WriterFactory getNewWriterFactory()
public static Writer getNewWriter()
public static StreamWriter getNewStreamWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |