Codota Logo
Destination.forElement
Code IndexAdd Codota 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)

  • Common ways to obtain Destination
private void myMethod () {
Destination d =
  • Codota IconService service;String id;service.findDestinationById(id)
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now