...
A ResourceReader
is a class that retrieves a Resource or product from a native/external source and returns it to
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
. 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 |
---|
nopanel | trueApplicationName |
---|
|
. 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.
...
- Create a Java class that implements the
ddf.catalog.resource.ResourceReader
interface. - Deploy the OSGi bundled packaged service to the
Insert excerpt |
---|
| ApplicationName |
---|
| ApplicationName |
---|
nopanel | trueApplicationName |
---|
|
run-time.
...
See the XML below for an example:
Code Block |
---|
| xml |
---|
| xml |
---|
title | Blueprint examplexml |
---|
|
<bean id="[[customResourceReaderId]]" class="[[example.resource.reader.impl.CustomResourceReader]]" />
<service ref="[[customResourceReaderId]]" interface="ddf.catalog.source.ResourceReader" /> |