Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

A ResourceReader is a class that retrieves a Resource or product from a native/external source and returns it to

Insert excerpt
ApplicationName
ApplicationName
nopaneltrueApplicationName
. A simple example is that of a File ResourceReader. It takes a file from the local file system and passes it back to
Insert excerpt
ApplicationName
ApplicationName
nopaneltrueApplicationName
.  New implementations can be created in order to support obtaining Resources from various Resource data stores.  See the Working with Resources section of the Developer's Guide for more information. 

...

  1. Create a Java class that implements the ddf.catalog.resource.ResourceReader interface.
  2. Deploy the OSGi bundled packaged service to the 
    Insert excerpt
    ApplicationName
    ApplicationName
    nopaneltrueApplicationName
    run-time.

...

See the XML below for an example:

Code Block
xml
xml
titleBlueprint examplexml
<bean id="[[customResourceReaderId]]" class="[[example.resource.reader.impl.CustomResourceReader]]" />
<service ref="[[customResourceReaderId]]" interface="ddf.catalog.source.ResourceReader" />