Tabnine Logo
GuiceBeanProvider$Visitor.visit
Code IndexAdd Tabnine to your IDE (free)

How to use
visit
method
in
org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider$Visitor

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider$Visitor.visit (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: 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);
  }
 }
}
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);
  }
 }
}
org.apache.shindig.protocol.conversion.xstreamGuiceBeanProvider$Visitorvisit

Popular methods of GuiceBeanProvider$Visitor

  • shouldVisit

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • Path (java.nio.file)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
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