Class MetadataExtractorFactory


  • public class MetadataExtractorFactory
    extends java.lang.Object
    Factory for meta data extractors.
    Since:
    6.1.0
    Version:
    $Revision: 15055 $ $Date: 2012-11-29 18:48:37 -0200 (Thu, 29 Nov 2012) $
    • Constructor Detail

      • MetadataExtractorFactory

        public MetadataExtractorFactory()
    • Method Detail

      • getExtractor

        public static IMetadataExtractor getExtractor​(FileMacrotype type,
                                                      java.lang.String serviceInstanceId)
                                               throws PortalException,
                                                      java.lang.IllegalArgumentException
        Returns an extractor based on service instance and FileMacrotype. To discover the correct IMetadataExtractor implementation class for the given parameter, a search in custom properties is done.
        If no custom property was defined, the default Extractor is called by #getDefaultMetadataExtractor(String).
        Parameters:
        type - the FileMacrotype of the file.
        serviceInstanceId - the service instance of the file.
        Returns:
        the IMetadataExtractor instance
        Throws:
        PortalException - if the specified class is not found;
        or if this Class represents an abstract class, an interface, an array class, a primitive type, or void;
        or if the class has no nullary constructor;
        or if the instantiation fails for some other reason.
        java.lang.IllegalArgumentException - if any parameter is null.
        Since:
        7.0.0