Package org.apache.wiki.api.spi
Interface ContentsSPI
- All Known Implementing Classes:
ContentsSPIDefaultImpl
public interface ContentsSPI
SPI used to locate and provide
Page and Attachment instances.-
Method Summary
Modifier and Type Method Description Attachmentattachment(Engine engine, java.lang.String parentPage, java.lang.String fileName)Creates a newAttachment.Pagepage(Engine engine, java.lang.String name)Creates aPageinstance.
-
Method Details
-
attachment
Creates a newAttachment. The final name of the attachment will be a synthesis of the parent page name and the file name.- Parameters:
engine- The Engine which is hosting this attachment.parentPage- The page which will contain this attachment.fileName- The file name for the attachment.- Returns:
- new
Attachmentinstance.
-
page
Creates aPageinstance.- Parameters:
engine- The Engine that owns this page.name- The name of the page.- Returns:
- new
Pageinstance.
-