
gate.mimir.measurements.MeasurementPluginResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mimir-plugin-measurements Show documentation
Show all versions of mimir-plugin-measurements Show documentation
SemanticAnnotationHelper designed to allow flexible queries over Measurement annotations.
/*
* MeasurementPluginResource.java
*
* Copyright (c) 2007-2011, The University of Sheffield.
*
* This file is part of GATE Mímir (see http://gate.ac.uk/family/mimir.html),
* and is free software, licenced under the GNU Lesser General Public License,
* Version 3, June 2007 (also included with this distribution as file
* LICENCE-LGPL3.html).
*
* Valentin Tablan, 04 Apr 2011
*
* $Id: MeasurementPluginResource.java 14541 2011-11-14 19:31:23Z ian_roberts $
*/
package gate.mimir.measurements;
import gate.Resource;
import gate.creole.AbstractResource;
import gate.creole.ResourceInstantiationException;
import gate.creole.metadata.CreoleResource;
/**
* A simple no-function CREOLE resource only used so that we have some CREOLE
* metadata. We use that to locate the JAR containing the classes, which we
* then use to locate the associated resource files.
*/
@CreoleResource(isPrivate=true, comment="A resource type only defined to use " +
"its configuration side effects. It cannot be instantiated!")
public class MeasurementPluginResource extends AbstractResource {
private static final long serialVersionUID = -5800095942127931219L;
@Override
public Resource init() throws ResourceInstantiationException {
throw new ResourceInstantiationException("This resource has no actual " +
"function and cannot be instantaited.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy