Class EntityLinkerFactory


  • public class EntityLinkerFactory
    extends Object
    Generates an EntityLinker implementation via properties file configuration
    • Constructor Detail

      • EntityLinkerFactory

        public EntityLinkerFactory()
    • Method Detail

      • getLinker

        public static EntityLinker<?> getLinker​(String entityType,
                                                EntityLinkerProperties properties)
                                         throws IOException
        Parameters:
        entityType - The type of entity being linked to. This value is used to retrieve the implementation of the entitylinker from the entitylinker properties file.
        properties - An object that extends EntityLinkerProperties. This object will be passed into the implemented EntityLinker init(..) method, so it is an appropriate place to put additional resources.
        Returns:
        an EntityLinker impl
        Throws:
        IOException
      • getLinker

        public static EntityLinker<?> getLinker​(EntityLinkerProperties properties)
                                         throws IOException
        Parameters:
        properties - An object that extends EntityLinkerProperties. This object will be passed into the implemented EntityLinker init(..) method, so it is an appropriate place to put additional resources. In the properties file, the linker implementation must be provided using "linker" as the properties key, and the full class name as value
        Returns:
        an EntityLinker impl
        Throws:
        IOException