Tabnine Logo
GuiceBeanProvider.getSerializableProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
getSerializableProperties
method
in
org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider.getSerializableProperties (Showing top 5 results out of 315)

origin: org.gatein.shindig/shindig-common

public void visitSerializableProperties(Object object, Visitor visitor) {
 for (PropertyDescriptor property : getSerializableProperties(object)) {
  try {
   Method readMethod = property.getReadMethod();
   String name = property.getName();
   Class<?> definedIn = readMethod.getDeclaringClass();
   if (visitor.shouldVisit(name, definedIn)) {
    Object value = readMethod.invoke(object);
    visitor.visit(name, property.getPropertyType(), definedIn, value);
   }
  } catch (IllegalArgumentException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (IllegalAccessException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (InvocationTargetException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  }
 }
}
origin: apache/shindig

public void visitSerializableProperties(Object object, Visitor visitor) {
 for (PropertyDescriptor property : getSerializableProperties(object)) {
  try {
   Method readMethod = property.getReadMethod();
   String name = property.getName();
   Class<?> definedIn = readMethod.getDeclaringClass();
   if (visitor.shouldVisit(name, definedIn)) {
    Object value = readMethod.invoke(object);
    visitor.visit(name, property.getPropertyType(), definedIn, value);
   }
  } catch (IllegalArgumentException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (IllegalAccessException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (InvocationTargetException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  }
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

public void visitSerializableProperties(Object object, Visitor visitor) {
 for (PropertyDescriptor property : getSerializableProperties(object)) {
  try {
   Method readMethod = property.getReadMethod();
   String name = property.getName();
   Class<?> definedIn = readMethod.getDeclaringClass();
   if (visitor.shouldVisit(name, definedIn)) {
    Object value = readMethod.invoke(object);
    visitor.visit(name, property.getPropertyType(), definedIn, value);
   }
  } catch (IllegalArgumentException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (IllegalAccessException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (InvocationTargetException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  }
 }
}
origin: org.apache.shindig/shindig-common

public void visitSerializableProperties(Object object, Visitor visitor) {
 for (PropertyDescriptor property : getSerializableProperties(object)) {
  try {
   Method readMethod = property.getReadMethod();
   String name = property.getName();
   Class<?> definedIn = readMethod.getDeclaringClass();
   if (visitor.shouldVisit(name, definedIn)) {
    Object value = readMethod.invoke(object);
    visitor.visit(name, property.getPropertyType(), definedIn, value);
   }
  } catch (IllegalArgumentException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (IllegalAccessException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (InvocationTargetException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  }
 }
}
origin: com.lmco.shindig/shindig-common

public void visitSerializableProperties(Object object, Visitor visitor) {
 for (PropertyDescriptor property : getSerializableProperties(object)) {
  try {
   Method readMethod = property.getReadMethod();
   String name = property.getName();
   Class<?> definedIn = readMethod.getDeclaringClass();
   if (visitor.shouldVisit(name, definedIn)) {
    Object value = readMethod.invoke(object);
    visitor.visit(name, property.getPropertyType(), definedIn, value);
   }
  } catch (IllegalArgumentException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (IllegalAccessException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  } catch (InvocationTargetException e) {
   throw new ObjectAccessException("Could not get property "
     + object.getClass() + '.' + property.getName(), e);
  }
 }
}
org.apache.shindig.protocol.conversion.xstreamGuiceBeanProvidergetSerializableProperties

Popular methods of GuiceBeanProvider

  • <init>
  • canStreamProperty
  • getProperty
  • getPropertyType
  • newInstance
  • propertyDefinedInClass
  • visitSerializableProperties
  • writeProperty
  • getNameMap

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Permission (java.security)
    Legacy security code; do not use.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
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