Issue Details (XML | Word | Printable)

Key: JACEGI-1
Type: New Feature New Feature
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Ole Ersoy
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JCaptcha Acegi intégration

DefaultManageableImageCaptchaService Singleton Reference on the ImageCaptchaService Interface?

Created: 08/Oct/08 04:52 PM   Updated: 08/Oct/08 04:57 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
Hi,

I'm noticing in the 5 minute integration tutorial that it's necessary to create a CaptchaServiceSingleton class.

Seems like it would be helpful to have a reference to this singleton on the the ImageCaptchaService interface. Could be implemented like this:

public ImageCaptchaService ICS_INSTANCE =
new com.octo.captcha.service.image.DefaultManageableImageCaptchaService();

This way any class that wants the service just has to implement ImageCaptchaService and use the implementation singleton per the ICS_INSTANCE reference.

Thanks for JCAPTCHA. It's a brilliant project!

Ole



Sort Order: Ascending order - Click to sort in descending order
Ole Ersoy added a comment - 08/Oct/08 04:57 PM
Oops - I meant to put this under Jcaptcha Framework. I looked around to see if I could change the category, but it seems theres no such option.