Skip to main content
summaryrefslogtreecommitdiffstats
blob: ac1bd54414cde66d896e42dfb903f12fff8c5386 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*******************************************************************************
 * Copyright (c) 2010, 2019 IBM Corporation and others.
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsf.common.internal.locator;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * Default delegatable locator for composing locators.
 * 
 * @author cbateman
 *
 * @param <LOCATORTYPE>
 * @param <COMPOSITETYPE>
 * @param <CONTEXTTYPE>
 * @param <IDTYPE>
 */
public class DefaultComposingLocatorDelegate<LOCATORTYPE, COMPOSITETYPE, CONTEXTTYPE, IDTYPE> extends
        AbstractLocator<COMPOSITETYPE, CONTEXTTYPE, IDTYPE>
{

    /**
     * @param id
     * @param displayName
     */
    public DefaultComposingLocatorDelegate(IDTYPE id, String displayName)
    {
        super(id, displayName);
    }

    
    /**
     * @param id
     * @param displayName
     * @param noResultValue
     * @param mutableListenerList
     */
    public DefaultComposingLocatorDelegate(
            IDTYPE id,
            String displayName,
            COMPOSITETYPE noResultValue,
            CopyOnWriteArrayList<ILocatorChangeListener> mutableListenerList)
    {
        super(id, displayName, noResultValue, mutableListenerList);
    }


    @Override
    protected COMPOSITETYPE doLocate(CONTEXTTYPE context)
    {
        throw new UnsupportedOperationException("This method is abstract and should not be called"); //$NON-NLS-1$
    }
}

Back to the top