public class EntityLinkerFactory extends Object
Constructor and Description |
---|
EntityLinkerFactory() |
Modifier and Type | Method and Description |
---|---|
static EntityLinker<?> |
getLinker(EntityLinkerProperties properties) |
static EntityLinker<?> |
getLinker(String entityType,
EntityLinkerProperties properties) |
public static EntityLinker<?> getLinker(String entityType, EntityLinkerProperties properties) throws IOException
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.IOException
public static EntityLinker<?> getLinker(EntityLinkerProperties properties) throws IOException
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 valueIOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.