This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BeanLocator implements ServiceLocator { | |
@Override | |
public Object getInstance(Class<?> clazz) { | |
System.out.println(clazz); | |
if (clazz.equals(GroupManager.class)) { | |
return lookupBean(clazz, "GroupManager"); | |
} else { | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.intendia.igestion.web.util.info; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.dom.client.Document; | |
import com.google.gwt.dom.client.Element; | |
import com.google.gwt.dom.client.ScriptElement; | |
public class DefaultRuntimeInfo implements RuntimeInfo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2003-2007 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package javaapplication1; | |
import tempbarosensor.I2CSensor; | |
public class MPL115A2 extends I2CSensor { | |
private static final int ADDRESS = 0x60; | |
private final double a0; | |
private final double b1; | |
private final double b2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.util.concurrent.Semaphore; | |
public class SocketCloseDetection { | |
public static void main(String[] args) throws IOException, InterruptedException { | |
final ServerSocket serverSocket = new ServerSocket(6677); | |
final Semaphore semaphore = new Semaphore(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2015 Netflix, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | |
* compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License is | |
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.intendia.igestion.server.resource; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.databind.BeanDescription; | |
import com.fasterxml.jackson.databind.JavaType; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.JsonSerializer; | |
import com.fasterxml.jackson.databind.SerializationConfig; | |
import com.fasterxml.jackson.databind.SerializerProvider; | |
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dtachoviewer.client; | |
import static com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape; | |
import static elemental.events.Event.CHANGE; | |
import static elemental.events.Event.COPY; | |
import static elemental.events.Event.DRAGLEAVE; | |
import static elemental.events.Event.DRAGOVER; | |
import static elemental.events.Event.DROP; | |
import com.google.gwt.core.client.EntryPoint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.intendia.igestion.client.ui; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.core.client.Scheduler; | |
import com.google.gwt.user.client.Window; | |
public class SuperDevModeHelper { | |
/** Configure devmode and try to compile and reload the app, if it fails do nothing. */ | |
public static void devModeOn() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dnd; | |
import static elemental2.dom.DomGlobal.document; | |
import static org.jboss.gwt.elemento.core.EventType.dragend; | |
import static org.jboss.gwt.elemento.core.EventType.dragover; | |
import static org.jboss.gwt.elemento.core.EventType.drop; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.core.client.GWT; | |
import elemental2.dom.DataTransfer; |
OlderNewer