This file contains hidden or 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
╭─antoine@antoine-qosmio ~/IdeaProjects/Photon ‹master› | |
╰─$ tar tf login/build/distributions/login-1.0-master.tar | |
login-1.0-master/ | |
login-1.0-master/lib/ | |
login-1.0-master/lib/login-1.0-master.jar | |
login-1.0-master/lib/scala-library-2.10.2.jar | |
login-1.0-master/lib/scalalogging-slf4j_2.10-1.0.1.jar | |
login-1.0-master/lib/util-core_2.10-6.6.0.jar | |
login-1.0-master/lib/config-1.0.2.jar | |
login-1.0-master/lib/logback-classic-1.0.13.jar |
This file contains hidden or 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 org.photon.login | |
import org.photon.protocol.dofus.login._ | |
import com.typesafe.scalalogging.slf4j.Logger | |
import com.twitter.util.{Future, Throw, Return} | |
import org.slf4j.LoggerFactory | |
import org.photon.protocol.dofus.DofusProtocol | |
import org.photon.common.Observable | |
trait HandlerComponentImpl extends HandlerComponent { |
This file contains hidden or 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
[ant:scalac] The argument types of an anonymous function must be fully known. (SLS 8.5) | |
[ant:scalac] Expected type was: ? | |
[ant:scalac] handle { |
This file contains hidden or 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
trait FooHandlerComponent extends HandlerComponent { | |
handle(authenticated && playing) { | |
case Message(s, Bar(baz)) if xzf => | |
Future.Done | |
} | |
} |
This file contains hidden or 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
/home/antoine/IdeaProjects/Photon/realm/main/src/org/photon/realm/HandlerComponent.scala:23: warning: then is now a reserved word; usage as an identifier is deprecated | |
private def then(fn: NetworkHandler, f: Filter): NetworkHandler = { | |
^ | |
/home/antoine/IdeaProjects/Photon/realm/main/src/org/photon/realm/HandlerComponent.scala:30: warning: then is now a reserved word; usage as an identifier is deprecated | |
def then(f: Filter): NetworkHandler = HandlerComponent.then(fn, f) | |
^ | |
/home/antoine/IdeaProjects/Photon/realm/main/src/org/photon/realm/HandlerComponent.scala:30: warning: then is now a reserved word; usage as an identifier is deprecated | |
def then(f: Filter): NetworkHandler = HandlerComponent.then(fn, f) | |
^ | |
/home/antoine/IdeaProjects/Photon/realm/main/src/org/photon/realm/NetworkComponentImpl.scala:101: warning: non-variable type argument org.photon.protocol.dofus.DofusMessage in type pattern List[org.photon.protocol.dofus.D |
This file contains hidden or 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 org.photon.staticdata; | |
import com.fasterxml.jackson.annotation.*; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.databind.*; | |
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | |
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | |
import com.fasterxml.jackson.databind.node.ArrayNode; | |
import com.fasterxml.jackson.databind.node.NumericNode; |
This file contains hidden or 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 org.photon; | |
import com.fasterxml.jackson.annotation.ObjectIdGenerator; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.databind.BeanDescription; | |
import com.fasterxml.jackson.databind.DeserializationContext; | |
import com.fasterxml.jackson.databind.JavaType; | |
import com.fasterxml.jackson.databind.JsonDeserializer; | |
import com.fasterxml.jackson.databind.deser.impl.PropertyBasedObjectIdGenerator; |
This file contains hidden or 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
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", scope = Parent.class) | |
public static class Parent { | |
private long id; | |
private String name; | |
@OneToMany | |
private List<Child> children = new ArrayList<>(); | |
public long getId() { | |
return id; | |
} |
This file contains hidden or 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 org.photon; | |
import com.fasterxml.jackson.core.Version; | |
import com.fasterxml.jackson.databind.AnnotationIntrospector; | |
import com.fasterxml.jackson.databind.introspect.Annotated; | |
import com.fasterxml.jackson.databind.introspect.AnnotatedMember; | |
public class FlatJsonIntrospector extends AnnotationIntrospector { | |
@Override | |
public Version version() { |
This file contains hidden or 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
{ | |
"parents" : [ { | |
"id" : 1, | |
"name" : "DADDY", | |
"children" : [ 1, 2 ] | |
} ], | |
"children" : [ { | |
"id" : 1, | |
"name" : "JUNIOR", | |
"parent" : 1 |