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

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

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider$Visitor.shouldVisit (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$VisitorshouldVisit

Popular methods of GuiceBeanProvider$Visitor

  • visit

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Option (scala)
  • 21 Best IntelliJ Plugins
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