Adam Lally wrote: > On Tue, Feb 19, 2008 at 11:32 AM, Michael Baessler > <[EMAIL PROTECTED]> wrote: >> If a PEAR file is installed, after the installation an installation >> verification is done. >> During the verification the component type of the descriptor is tested >> to check >> how the verification must be done. If the main component descriptor is a >> CustomResourceSpecifier the verification fails in any case. There is no >> code that >> checks that kind of specifier. >> >> But how can we check that, it may be possible that the custom resource >> implements >> an AE but I think it needn't. So how does the framework handle these >> kind of resources? >> > > In general, when you call > UIMAFramework.produceAnalysisEngine(ResourceSpecifier), it tries to > create an AnalysisEngine from the ResouceSpecifier, and throws an > exception if it can't. The exception is something approximately like > "Resource Factory does not know how to create a resource of type > AnalysisEngine from the given ResourceSpecifier". > > For CustomResourceSpecifiers, this is done in the class > com.ibm.uima.impl.CustomResourceSpecifierFactory_impl. It loads the > user's class and checks if it isAssignableFrom the desired interface > (such as AnalysisEngine). If it isn't then it throws the exception. > > -Adam OK, so I will try to treat the customResourceSpecifier as AE since if that is not possible, the UIMA framework will not be able to run the component.
-- Michael
