com.logabit.webtools.patchwork.content
Interface ContentProvider

All Known Implementing Classes:
XmlFileContentProvider

public interface ContentProvider

Represents a content provider. Such a provider is responsible to load the content using the given attributes. For example the XmlFileContentProvider will load its content from the given xml file.

Author:
Stephan Niedermeier

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 java.lang.Object getContent(ContentProviderDescriptor descriptor)
          Loads and returns the content object.
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

getContent

java.lang.Object getContent(ContentProviderDescriptor descriptor)
                            throws ContentProviderException
Loads and returns the content object.

Parameters:
descriptor - - The content descriptor.
Returns:
The content object. This could be any object supported by the view layer for displaying.
Throws:
ContentProviderException - - If something went wrong in preparing and returning the content object.


Copyright © 2007. All Rights Reserved.