/* * 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$ */ 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."); } }