|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anwrt.anycontent.plugin.ExtensionPoint
com.anwrt.anycontent.extensions.content.ContentExtensionPoint
This class is in charge of handling content extension point.
This point handles the pool of availables content.
| Constructor Summary | |
ContentExtensionPoint()
|
|
| Method Summary | |
void |
configure(Configuration configuration)
Configure this extension point. |
void |
configureExtension(java.lang.String pluginName,
java.lang.String pluginId,
Configuration configuration)
Add an extension to this point. |
ContentType |
getContent(java.lang.String id)
Get the content with an id |
void |
initialize()
Method called at the end of the initialization process. |
boolean |
isSingle()
Returns wether this extension point is single |
| Methods inherited from class com.anwrt.anycontent.plugin.ExtensionPoint |
getId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentExtensionPoint()
| Method Detail |
public boolean isSingle()
ExtensionPoint
isSingle in class ExtensionPoint
public void configure(Configuration configuration)
throws ConfigurationException
ExtensionPoint
<extension id="AAA" class="BBB">
<!-- XML content to be handled by a specific implementation -->
</extension>
configure in class ExtensionPointconfiguration - the Configuration containing all
needed data for this ExtensionPoint to initialize
ConfigurationException
public void configureExtension(java.lang.String pluginName,
java.lang.String pluginId,
Configuration configuration)
throws ConfigurationException
ExtensionPoint
configureExtension in class ExtensionPointconfiguration - the information about the extension to be addedpluginName - Unique identifier for the plugin hosting the extension
(equals to the directory name)pluginId - Unique plugin identifier (unique for a given pluginName)
ConfigurationExceptionpublic void initialize()
ExtensionPoint
initialize in class ExtensionPointpublic ContentType getContent(java.lang.String id)
id - Id of the content to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||