|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.cdr.SmooksResourceConfigurationStore
public class SmooksResourceConfigurationStore
SmooksResourceConfiguration context store.
SmooksResourceConfigurations
for a given container context in the form of
SmooksResourceConfigurationList entries. Also maintains
a "default" config list for the context.
| Constructor Summary | |
|---|---|
SmooksResourceConfigurationStore(ApplicationContext applicationContext)
Public constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close this resource configuration store, uninitializing
all ContentHandlers allocated from this store instance. |
List<ContentHandler> |
getAllocatedHandlers()
|
ContentHandlerFactory |
getContentHandlerFactory(String type)
Get the ContentHandlerFactory for a resource based on the
supplied resource type. |
Object |
getObject(SmooksResourceConfiguration resourceConfig)
Load a Java Object defined by the supplied SmooksResourceConfiguration instance. |
Iterator<SmooksResourceConfigurationList> |
getSmooksResourceConfigurationLists()
Get all the added SmooksResourceConfigurationList instances added on this store. |
SmooksResourceConfiguration[] |
getSmooksResourceConfigurations(ProfileSet profileSet)
Get all the SmooksResourceConfiguration entries registered on this context store for the specified profile set. |
void |
load(BufferedReader cdrlLoadList)
Load all .cdrl files listed in the BufferedReader stream. |
void |
registerResource(SmooksResourceConfiguration resourceConfig)
Register a SmooksResourceConfiguration on this context store. |
void |
registerResources(String baseURI,
InputStream resourceConfigStream)
Register the set of resources specified in the supplied XML configuration stream. |
void |
removeShutdownHook()
Remove the shutdown hook associated with this store instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmooksResourceConfigurationStore(ApplicationContext applicationContext)
applicationContext - Container context in which this store lives.| Method Detail |
|---|
public void removeShutdownHook()
public void load(BufferedReader cdrlLoadList)
throws IOException
cdrlLoadList - BufferedReader cdrl list - one cdrl def per line.
IOException - Error reading list buffer.
public void registerResources(String baseURI,
InputStream resourceConfigStream)
throws SAXException,
IOException,
URISyntaxException
baseURI - The base URI to be associated with the configuration stream.resourceConfigStream - XML resource configuration stream.
SAXException - Error parsing the resource stream.
IOException - Error reading resource stream.
URISyntaxExceptionSmooksResourceConfigurationpublic void registerResource(SmooksResourceConfiguration resourceConfig)
SmooksResourceConfiguration on this context store.
The config gets added to the default resource list.
resourceConfig - The Content Delivery Resource definition to be registered.public Iterator<SmooksResourceConfigurationList> getSmooksResourceConfigurationLists()
public SmooksResourceConfiguration[] getSmooksResourceConfigurations(ProfileSet profileSet)
profileSet - The profile set against which to lookup.
public Object getObject(SmooksResourceConfiguration resourceConfig)
resourceConfig - SmooksResourceConfiguration instance.
public List<ContentHandler> getAllocatedHandlers()
public ContentHandlerFactory getContentHandlerFactory(String type)
throws UnsupportedContentHandlerTypeException
ContentHandlerFactory for a resource based on the
supplied resource type.
Note that ContentHandlerFactory implementations must be configured under a selector value of "cdu-creator".
type - ContentHandlerFactory type e.g. "class", "xsl" etc.
ContentHandlerFactory for the resource.
UnsupportedContentHandlerTypeException - No ContentHandlerFactory
registered for the specified resource type.public void close()
uninitializing
all ContentHandlers allocated from this store instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||