Codota Logo
Schema$SchemaPropertyRef.isSingleton
Code IndexAdd Codota to your IDE (free)

How to use
isSingleton
method
in
org.deephacks.confit.model.Schema$SchemaPropertyRef

Best Java code snippets using org.deephacks.confit.model.Schema$SchemaPropertyRef.isSingleton (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.deephacks/confit-admin-jaxrs

public SchemaPropertyRef(Schema.SchemaPropertyRef schema) {
  super(schema);
  this.schemaName = schema.getSchemaName();
  this.classType = schema.getClassType().getName();
  this.isSingleton = schema.isSingleton();
}
origin: org.deephacks/confit

private void setSingletonReferences(Bean bean) {
  Schema s = bean.getSchema();
  for (SchemaPropertyRef ref : s.get(SchemaPropertyRef.class)) {
    if (ref.isSingleton()) {
      Schema singletonSchema = schemaManager.getSchema(ref.getSchemaName());
      Optional<Bean> singleton = beanManager.getSingleton(ref.getSchemaName());
      if (singleton.isPresent()) {
        singleton.get().set(singletonSchema);
        BeanId singletonId = singleton.get().getId();
        singletonId.setBean(singleton.get());
        // recursive call.
        setSingletonReferences(singleton.get());
        bean.setReference(ref.getName(), singletonId);
      }
    }
  }
}
origin: org.deephacks/confit

private void setSingletonReferences(Bean bean) {
  Schema s = bean.getSchema();
  for (SchemaPropertyRef ref : s.get(SchemaPropertyRef.class)) {
    if (ref.isSingleton()) {
      Schema singletonSchema = schemaManager.getSchema(ref.getSchemaName());
      Optional<Bean> singleton = beanManager.getSingleton(ref.getSchemaName());
      if (!singleton.isPresent()) {
        initFile(null);
        Bean fileBean = FILE_CONFIG.get(BeanId.createSingleton(ref.getSchemaName()));
        if (fileBean != null) {
          singleton = Optional.of(fileBean);
        }
      }
      if (!singleton.isPresent()) {
        singleton = Optional.of(Bean.create(BeanId.createSingleton(ref.getSchemaName())));
      }
      singleton.get().set(singletonSchema);
      BeanId singletonId = singleton.get().getId();
      singletonId.setBean(singleton.get());
      // recursive call.
      setSingletonReferences(singleton.get());
      bean.setReference(ref.getName(), singletonId);
    }
  }
}
org.deephacks.confit.modelSchema$SchemaPropertyRefisSingleton

Popular methods of Schema$SchemaPropertyRef

  • getSchemaName
  • <init>
  • create
    Not to be used by users.
  • equals
  • getName
  • getClassType
  • getFieldName

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now