congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Reflection.findSerializableProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
findSerializableProperty
method
in
org.granite.messaging.reflect.Reflection

Best Java code snippets using org.granite.messaging.reflect.Reflection.findSerializableProperty (Showing top 6 results out of 315)

origin: org.graniteds/granite-client-java

public void setPropertyValue(Object entity, String name, Object value) {
  Property property = reflection.findSerializableProperty(entity.getClass(), name);
  if (property == null)
    throw new RuntimeException("Property " + name + " not found on object " + entity);
  try {
    property.setObject(entity, value);
  }
  catch (Exception e) {
    throw new RuntimeException("Could not set " + property + " of object " + entity, e);
  }
}
 
origin: org.graniteds/granite-client

public void setPropertyValue(Object entity, String name, Object value) {
  Property property = reflection.findSerializableProperty(entity.getClass(), name);
  try {
    property.setObject(entity, value);
  }
  catch (Exception e) {
    throw new RuntimeException("Could not set " + property + " of object " + entity);
  }
}
 
origin: org.graniteds/granite-client-javafx

public void setPropertyValue(Object entity, String name, Object value) {
  Property property = reflection.findSerializableProperty(entity.getClass(), name);
  if (property == null)
    throw new RuntimeException("Property " + name + " not found on object " + entity);
  try {
    property.setObject(entity, value);
  }
  catch (Exception e) {
    throw new RuntimeException("Could not set " + property + " of object " + entity, e);
  }
}
 
origin: org.graniteds/granite-client-java

public Object getPropertyValue(Object entity, String name, boolean raw) {
  Property property = reflection.findSerializableProperty(entity.getClass(), name);
  if (property == null)
    throw new RuntimeException("Property " + name + " not found on object " + entity);
  try {
    return raw ? property.getRawObject(entity) : property.getObject(entity);
  }
  catch (Exception e) {
    throw new RuntimeException("Could not get " + property + " of object " + entity, e);
  }
}
 
origin: org.graniteds/granite-client-javafx

public Object getPropertyValue(Object entity, String name, boolean raw) {
  Property property = reflection.findSerializableProperty(entity.getClass(), name);
  if (property == null)
    throw new RuntimeException("Property " + name + " not found on object " + entity);
  try {
    return raw ? property.getRawObject(entity) : property.getObject(entity);
  }
  catch (Exception e) {
    throw new RuntimeException("Could not get " + property + " of object " + entity, e);
  }
}
 
origin: org.graniteds/granite-client

public Object getPropertyValue(Object entity, String name, boolean raw) {
  Property property = reflection.findSerializableProperty(entity.getClass(), name);
  try {
    return raw ? property.getRawObject(entity) : property.getObject(entity);
  }
  catch (Exception e) {
    throw new RuntimeException("Could not get " + property + " of object " + entity);
  }
}
 
org.granite.messaging.reflectReflectionfindSerializableProperty

Popular methods of Reflection

  • findSerializableProperties
  • loadClass
  • newInstance
  • <init>
  • getClassLoader
  • isRegularClass
  • newFieldProperty
  • newMethodProperty
  • findProperty
  • getDescriptor
  • getLexicalPropertyComparator
  • findSerializableDeclaredProperties
  • getLexicalPropertyComparator,
  • findSerializableDeclaredProperties

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Runner (org.openjdk.jmh.runner)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best IntelliJ 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