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

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Top 17 Plugins for Android Studio
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