Codota Logo
Destination.getAdapter
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.granite.config.flex.Destination.getAdapter (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

log.debug(">> No cached factory for: %s", adapterId);
Adapter config = destination.getAdapter();
try {
  Class<? extends ServiceAdapter> clazz = (adapterId != null)
log.debug(">> Found a cached serviceAdapter for ref: %s", destination.getAdapter());
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);
}
org.granite.config.flexDestinationgetAdapter

Popular methods of Destination

  • getProperties
  • getId
  • getScannedClass
  • <init>
  • addRemoveListener
  • forElement
  • getSecurizer
  • remove
  • 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