Codota Logo
Adapter.getId
Code IndexAdd Codota to your IDE (free)

How to use
getId
method
in
org.granite.config.flex.Adapter

Best Java code snippets using org.granite.config.flex.Adapter.getId (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.ow2.kerneos.graniteds-osgi/granite-core

  @Override
  public String toString() {
    return "Service{" +
        "id=" + id +
        ", class=" + className +
        ", messageTypes=" + messageTypes +
        ", defaultAdapter=" + adapter.getId() +
        '}';
  }
}
origin: org.graniteds/granite-server

public void addAdapter(Adapter adapter) {
  adapters.put(adapter.getId(), adapter);
}
origin: org.graniteds/granite-client

public void addAdapter(Adapter adapter) {
  adapters.put(adapter.getId(), adapter);
}
origin: org.ow2.kerneos.graniteds-osgi/granite-core

  @Override
  public String toString() {
    return "Destination{" +
        "id='" + id + '\'' +
        ", service='" + service.getId() + '\'' +
        ", adapter='" + adapter.getId() + '\'' +
        '}';
  }
}
origin: org.graniteds/granite-server

public ServiceAdapter getServiceAdapter(String messageType, String destinationId) throws ServiceException {
  GraniteContext context = GraniteContext.getCurrentInstance();
  log.debug(">> Finding serviceAdapter for messageType: %s and destinationId: %s", messageType, destinationId);
  ServicesConfig servicesConfig = context.getServicesConfig();
  Destination destination = servicesConfig.findDestinationById(messageType, destinationId);
  if (destination == null) {
    log.debug(">> No destination found: %s", destinationId);
    return null;
  }
  Adapter adapter = destination.getAdapter();
  String key = null;
  if (adapter != null) {
    log.debug(">> Found adapterRef: %s", adapter.getId());
    key = AdapterFactory.class.getName() + '@' + destination.getId() + '.' + adapter.getId();
  }
  else
    key = defaultAdapterClass.getName() + '@' + destination.getId();
  return getServiceAdapter(adaptersCache, context, destination, key, adapter != null ? adapter.getId() : null);
}
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);
  }
}
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-server

adapter = buildAdapter();
Map<String, Adapter> adapters = new HashMap<String, Adapter>();
adapters.put(adapter.getId(), adapter);
service = new Service("gravity-service", "flex.messaging.services.MessagingService", "flex.messaging.messages.AsyncMessage", 
    adapter, adapters, new HashMap<String, Destination>());
service = services.get(0);
Adapter ad = buildAdapter();
adapter = service.findAdapterById(ad.getId());
if (adapter == null) {
  adapter = ad;
org.granite.config.flexAdaptergetId

Popular methods of Adapter

  • <init>
  • forElement
  • getClassName
  • getProperties

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • 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
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Runner (org.openjdk.jmh.runner)
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