Package se.sperber.cryson.examples.advancedcrysondiary.model

Examples of se.sperber.cryson.examples.advancedcrysondiary.model.Entry


public class DiaryLogger implements CrysonListener {

  public void commitCompleted(CommitNotification commitNotification) {
    for(Object createdObject : commitNotification.getCreatedEntities()) {
      if (createdObject instanceof Entry) {
        Entry createdEntry = (Entry)createdObject;
        System.out.println("### " + createdEntry.getUserName() + " created diary entry '" + createdEntry.getTitle() + "'");
      }
    }
  }
View Full Code Here

TOP

Related Classes of se.sperber.cryson.examples.advancedcrysondiary.model.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.