congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Destination.getScannedClass
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.graniteds/granite-client

protected SimpleServiceInvoker(Destination destination, SimpleServiceFactory factory) throws ServiceException {
  super(destination, factory);
  String className = destination.getProperties().get("source");
  if (className == null)
    throw new ServiceException("No source property for destination: " + destination);
  className = className.trim();
  log.debug(">> New SimpleServiceInvoker constructing new: %s", className);
  // Invokee class set at runtime (RemoteObject.source).
  if ("*".equals(className))
    sources = new HashMap<String, Object>();
  else {
    try {
      if (destination.getScannedClass() != null)
        this.invokee = destination.getScannedClass().newInstance();
      else
        this.invokee = TypeUtil.newInstance(className);
    } catch (Exception e) {
      throw new ServiceException("Invalid source property for destination: " + destination, e);
    }
    sources = null;
  }
}
origin: org.graniteds/granite-server

protected SimpleServiceInvoker(Destination destination, SimpleServiceFactory factory) throws ServiceException {
  super(destination, factory);
  String className = destination.getProperties().get("source");
  if (className == null)
    throw new ServiceException("No source property for destination: " + destination);
  className = className.trim();
  log.debug(">> New SimpleServiceInvoker constructing new: %s", className);
  // Invokee class set at runtime (RemoteObject.source).
  if ("*".equals(className))
    sources = new HashMap<String, Object>();
  else {
    try {
      if (destination.getScannedClass() != null)
        this.invokee = destination.getScannedClass().newInstance();
      else
        this.invokee = TypeUtil.newInstance(className);
    } catch (Exception e) {
      throw new ServiceException("Invalid source property for destination: " + destination, e);
    }
    sources = null;
  }
}
origin: org.graniteds/granite-server-ejb

public EjbServiceInvoker(Destination destination, EjbServiceFactory factory) throws ServiceException {
  super(destination, factory);
  String lookup = factory.getLookup();
  if (destination.getProperties().containsKey("lookup"))
    lookup = destination.getProperties().get("lookup");
  // Compute EJB JNDI binding.
  String name = destination.getId();
  if (lookup != null) {
    name = lookup;
    if (lookup.contains(CAPITALIZED_DESTINATION_ID))
      name = lookup.replace(CAPITALIZED_DESTINATION_ID, capitalize(destination.getId()));
    if (lookup.contains(DESTINATION_ID))
      name = lookup.replace(DESTINATION_ID, destination.getId());
  }
  log.debug(">> New EjbServiceInvoker looking up: %s", name);
  try {
    invokee = factory.lookup(name);
  } catch (NamingException e) {
    throw new ServiceException("Could not lookup for: " + name, e);
  }
  
  this.metadata = destination.getScannedClass() != null ?
    new EjbServiceMetadata(destination.getScannedClass(), invokee.getClass()) :
    new EjbServiceMetadata(destination.getProperties(), invokee.getClass());
}
org.granite.config.flexDestinationgetScannedClass

Popular methods of Destination

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Notification (javax.management)
  • Join (org.hibernate.mapping)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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