[daisy] Problem presavehook generating xinfo-info file
Bruno Dumon
bruno at outerthought.org
Thu Oct 12 06:47:05 CDT 2006
Hi,
I tried your file and indeed it doesn't work. Then I saw you're using
generics and wondered if maybe the javadoc-tag extracting code can't
handle 1.5 sources... removing the generics construct indeed solved the
problem.
This leaves you with the option of:
- not using java 1.5 constructs in component class files (could be done
by making the component class a small wrapper towards another class
which does the real work)
- or putting the .xinfo file in your source tree, and leaving out the
@avalon tags (since these tags are just a convenience for generating the
xinfo file)
On Thu, 2006-10-12 at 12:41 +0200, Bart Van den Abeele wrote:
> Thx for the information.
>
> However, my problem rests. The xinfo-file isn't generated correctly.
> I had the @avalon.dependency key in my source file. It was initialy a
> copy of the ImagePreSaveHook. It just doesn't get generated correctly.
> I don't see why. I use the exact same maven-build-file. I use the
> same import-statements except for the com.drew.* imports, i left these
> out.
>
>
> /**
> * A pre-save hook for extracting information from images and
> generating
> * thumbnail & preview images. It can be configured to work for
> multiple
> * document types.
> *
> * @avalon.component version="1.0" name="scandocument-postsavehook"
> lifestyle="singleton"
> */
> public class ScanDocumentPostSaveHook implements PreSaveHook,
> Serviceable, Disposable, Configurable, LogEnabled {
> private Logger logger;
> private ServiceManager serviceManager;
> private PreSaveHookRegistrar preSaveHookRegistrar;
> private FIFOSemaphore imageProcessingSemaphore;
> private Map<String, DoctypeConfig> docTypeConfigs = new
> HashMap<String, DoctypeConfig>();
>
> public void enableLogging(Logger logger) {
> this.logger = logger;
> }
>
> /**
> * @avalon.dependency key="presavehook-registrar"
> type="org.outerj.daisy.repository.PreSaveHookRegistrar"
> */
> public void service(ServiceManager serviceManager) throws
> ServiceException {
> this.serviceManager = serviceManager;
> preSaveHookRegistrar =
> (PreSaveHookRegistrar)serviceManager.lookup("postsavehook-registrar");
> preSaveHookRegistrar.registerPreSaveHook(this);
> }
>
<snip/>
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list