Thanks, It seems I was too tired to think well !
--
Xavier MOGHRABI - Consortium ObjectWeb
Le Lundi 13 Février 2006 22:23, Ludovic Dubost a écrit :
Hi,
You need to call "init" in you constructor
Ludovic
Xavier MOGHRABI a écrit :
> Dear XWiki Dev,
>
> I try to create a plugin which should reduce the image size to have a
> kind of thumbnail feature.
>
> To do that I've created a plugin a part of the code is hereunder.
>
> To call the plugin I've added in xwiki.cfg the complete name of the class
> (and also a parameter about the cache size). The plugin uses the cache
> service..
>
> At runtime my plugin is set by this code :
> Plugin imageplugin = (ImagePlugin) context.getWiki().getPlugin("image",
> context);
>
> But I don't have the cache service working, the attribute imageCache is
> null. It seems that the init method is never called.
>
> Any idea is welcome.
>
> Regards
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the xwiki-dev(a)objectweb.org
> mailing list. To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws