com.macromedia.rssu
Class RssInstanceFactory
java.lang.Object
com.macromedia.rssu.RssInstanceFactory
- Direct Known Subclasses:
- RdfStyleInstanceFactory, RssStyleInstanceFactory
- public abstract class RssInstanceFactory
- extends java.lang.Object
This object knows how to create instances
of RssTypes (like Channels, Items, etc.)
Making a new instance of these objects
would seem trivial -- just do a newInstance()
on them. however, we also need to do the critical
step of attaching the appropriate metadata
to the objects. Without this metadata, the objects
can't function.
There are different flavors of factory depending
on the family of metadata that will get
returned
|
Method Summary |
RssType |
newInstance(java.lang.Class rssClass)
Given a class name return an
instance of the requested type,
all configured and ready to go. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RssInstanceFactory
public RssInstanceFactory()
newInstance
public RssType newInstance(java.lang.Class rssClass)
throws RssException
- Given a class name return an
instance of the requested type,
all configured and ready to go.
- Parameters:
rssClass - is the class object to create
- Returns:
- an RssType
- Throws:
RssException