javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/BrwsrCntxtPrvdr.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 26 Apr 2013 13:48:36 +0200
branchmodel
changeset 1023 ad9a37489365
child 1032 780d695c3477
permissions -rw-r--r--
Deprecating the javaquery.api's knockout annotation in favour of net.java.html.json ones. Providing default context for the browser.
jaroslav@1023
     1
/**
jaroslav@1023
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1023
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1023
     4
 *
jaroslav@1023
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1023
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1023
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1023
     8
 *
jaroslav@1023
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1023
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1023
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1023
    12
 * GNU General Public License for more details.
jaroslav@1023
    13
 *
jaroslav@1023
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1023
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1023
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1023
    17
 */
jaroslav@1023
    18
package org.apidesign.bck2brwsr.htmlpage;
jaroslav@1023
    19
jaroslav@1023
    20
import net.java.html.json.Context;
jaroslav@1023
    21
import org.apidesign.html.json.spi.ContextProvider;
jaroslav@1023
    22
import org.openide.util.lookup.ServiceProvider;
jaroslav@1023
    23
jaroslav@1023
    24
/**
jaroslav@1023
    25
 *
jaroslav@1023
    26
 * @author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1023
    27
 */
jaroslav@1023
    28
@ServiceProvider(service = ContextProvider.class)
jaroslav@1023
    29
public final class BrwsrCntxtPrvdr implements ContextProvider {
jaroslav@1023
    30
    @Override
jaroslav@1023
    31
    public Context findContext(Class<?> requestor) {
jaroslav@1023
    32
        return BrwsrCntxt.DEFAULT;
jaroslav@1023
    33
    }
jaroslav@1023
    34
}