Tabnine Logo
PropertyFieldSetter
Code IndexAdd Tabnine to your IDE (free)

How to use
PropertyFieldSetter
in
co.cask.tigon.lang

Best Java code snippets using co.cask.tigon.lang.PropertyFieldSetter (Showing top 2 results out of 315)

origin: co.cask.tigon/tigon-yarn

@Override
public void visit(Object instance, TypeToken<?> inspectType, TypeToken<?> declareType, Field field) throws Exception {
 if (field.isAnnotationPresent(Property.class)) {
  String key = declareType.getRawType().getName() + '.' + field.getName();
  String value = properties.get(key);
  if (value == null) {
   return;
  }
  setValue(instance, field, value);
 }
}
origin: co.cask.tigon/tigon-flow

new PropertyFieldSetter(flowletDef.getFlowletSpec().getProperties()),
new MetricsFieldSetter(flowletContext.getMetrics()),
new OutputEmitterFieldSetter(outputEmitterFactory(flowletContext, flowletName,
co.cask.tigon.langPropertyFieldSetter

Javadoc

A FieldVisitor that sets field value based on a given property map.

Most used methods

  • <init>
  • setValue
    Sets the value of the field in the given instance by converting the value from String to the field t

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • CodeWhisperer 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