Tabnine Logo
Destination.forElement
Code IndexAdd Tabnine to your IDE (free)

How to use
forElement
method
in
org.granite.config.flex.Destination

Best Java code snippets using org.granite.config.flex.Destination.forElement (Showing top 2 results out of 315)

origin: org.graniteds/granite-server

  public static Service forElement(XMap element) {
    String id = element.get("@id");
    String className = element.get("@class");
    String messageTypes = element.get("@messageTypes");

    Adapter defaultAdapter = null;
    Map<String, Adapter> adaptersMap = new HashMap<String, Adapter>();
    for (XMap adapter : element.getAll("adapters/adapter-definition")) {
      Adapter ad = Adapter.forElement(adapter);
      if (Boolean.TRUE.toString().equals(adapter.get("@default")))
        defaultAdapter = ad;
      adaptersMap.put(ad.getId(), ad);
    }

    Map<String, Destination> destinations = new HashMap<String, Destination>();
    for (XMap destinationElt : element.getAll("destination")) {
      Destination destination = Destination.forElement(destinationElt, defaultAdapter, adaptersMap);
      destinations.put(destination.getId(), destination);
    }

    return new Service(id, className, messageTypes, defaultAdapter, adaptersMap, destinations);
  }
}
origin: org.graniteds/granite-client

  public static Service forElement(XMap element) {
    String id = element.get("@id");
    String className = element.get("@class");
    String messageTypes = element.get("@messageTypes");

    Adapter defaultAdapter = null;
    Map<String, Adapter> adaptersMap = new HashMap<String, Adapter>();
    for (XMap adapter : element.getAll("adapters/adapter-definition")) {
      Adapter ad = Adapter.forElement(adapter);
      if (Boolean.TRUE.toString().equals(adapter.get("@default")))
        defaultAdapter = ad;
      adaptersMap.put(ad.getId(), ad);
    }

    Map<String, Destination> destinations = new HashMap<String, Destination>();
    for (XMap destinationElt : element.getAll("destination")) {
      Destination destination = Destination.forElement(destinationElt, defaultAdapter, adaptersMap);
      destinations.put(destination.getId(), destination);
    }

    return new Service(id, className, messageTypes, defaultAdapter, adaptersMap, destinations);
  }
}
org.granite.config.flexDestinationforElement

Popular methods of Destination

  • getProperties
  • getId
  • getScannedClass
  • <init>
  • addRemoveListener
  • getSecurizer
  • remove
  • getAdapter
  • getRoles
  • isSecured
  • setSecurizer
  • setSecurizer

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JOptionPane (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now