1 /*
2 * JCaptcha, the open source java framework for captcha definition and integration
3 * Copyright (c) 2007 jcaptcha.net. All Rights Reserved.
4 * See the LICENSE.txt file distributed with this package.
5 */
6
7 /*
8 * jcaptcha, the open source java framework for captcha definition and integration
9 * copyright (c) 2007 jcaptcha.net. All Rights Reserved.
10 * See the LICENSE.txt file distributed with this package.
11 */
12
13 /*
14 * jcaptcha, the open source java framework for captcha definition and integration
15 * copyright (c) 2007 jcaptcha.net. All Rights Reserved.
16 * See the LICENSE.txt file distributed with this package.
17 */
18 package com.octo.captcha.engine.sound;
19
20 import java.util.Arrays;
21
22 import com.octo.captcha.sound.SoundCaptchaFactory;
23
24 /***
25 * <p/>
26 * <p/>
27 * </p>
28 *
29 * @author Benoit Doumas
30 */
31 public class DefaultSoundCaptchaEngine extends SoundCaptchaEngine {
32
33 /***
34 * Default constructor : takes an array of SoundCaptchaFactories.
35 */
36 public DefaultSoundCaptchaEngine(final SoundCaptchaFactory[] factories) {
37 checkNotNullOrEmpty(factories);
38 this.factories = Arrays.asList(factories);
39 }
40 }