The Repository Loader example is configured with a TypeMapper component that maps file extensions to TypeMappings, with the following property configuration:

extensions=.xml,.txt,.gif,.jpg,.html,.eml

typeMappings=pressReleaseXMLTypeMapping,\
             pressReleaseTXTTypeMapping,\
             gifImageTypeMapping,\
             jpgImageTypeMapping,\
             htmlArticleTypeMapping,\
             userTypeMapping

The yields the following mappings:

This file extension:

Maps to this TypeMapping component:

.xml

pressReleaseXMLTypeMapping

.txt

pressReleaseTXTTypeMapping

.gif

gifImageTypeMapping

.jpg

jpgImageTypeMapping

.html

htmlArticleTypeMapping

.eml

userTypeMapping


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved.

Legal Notices