Tabnine Logo
JSONMetadataParser.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.redhat.lightblue.metadata.parser.JSONMetadataParser
constructor

Best Java code snippets using com.redhat.lightblue.metadata.parser.JSONMetadataParser.<init> (Showing top 4 results out of 315)

origin: com.redhat.lightblue.config/core-config

private synchronized void initializeParser()
    throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, IOException, InstantiationException {
  if (parser == null) {
    Extensions<JsonNode> extensions = new Extensions<>();
    extensions.addDefaultExtensions();
    Map<String, DataSourceConfiguration> ds = datasources.getDataSources();
    for (Map.Entry<String, DataSourceConfiguration> entry : ds.entrySet()) {
      Class<? extends DataStoreParser> tempParser = entry.getValue().getMetadataDataStoreParser();
      DataStoreParser backendParser = tempParser.newInstance();
      extensions.registerDataStoreParser(backendParser.getDefaultName(), backendParser);
    }
    parser = new JSONMetadataParser(extensions, new DefaultTypes(), NODE_FACTORY);
  }
}
origin: com.redhat.lightblue/lightblue-core-config

private synchronized void initializeParser()
    throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, IOException, InstantiationException {
  if (parser == null) {
    Extensions<JsonNode> extensions = new Extensions<>();
    extensions.addDefaultExtensions();
    Map<String, DataSourceConfiguration> ds = datasources.getDataSources();
    for (Map.Entry<String, DataSourceConfiguration> entry : ds.entrySet()) {
      Class<? extends DataStoreParser> tempParser = entry.getValue().getMetadataDataStoreParser();
      DataStoreParser backendParser = tempParser.newInstance();
      injectDependencies(backendParser);
      extensions.registerDataStoreParser(backendParser.getDefaultName(), backendParser);
    }
    parser = new JSONMetadataParser(extensions, new DefaultTypes(), NODE_FACTORY);
  }
}
origin: lightblue-platform/lightblue-core

private synchronized void initializeParser()
    throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, IOException, InstantiationException {
  if (parser == null) {
    Extensions<JsonNode> extensions = new Extensions<>();
    extensions.addDefaultExtensions();
    Map<String, DataSourceConfiguration> ds = datasources.getDataSources();
    for (Map.Entry<String, DataSourceConfiguration> entry : ds.entrySet()) {
      Class<? extends DataStoreParser> tempParser = entry.getValue().getMetadataDataStoreParser();
      DataStoreParser backendParser = tempParser.newInstance();
      injectDependencies(backendParser);
      extensions.registerDataStoreParser(backendParser.getDefaultName(), backendParser);
    }
    parser = new JSONMetadataParser(extensions, new DefaultTypes(), NODE_FACTORY);
  }
}
origin: lightblue-platform/lightblue-core

/**
 * Creates an instance of {@link JSONMetadataParser}.
 *
 * @param backend - Name of backend to use.
 * @param fieldConstraintParsers - <i>(optional)</i>
 * {@link FieldConstraintParser}s to register on the {@link Extensions} used
 * to parse the {@link EntityMetadata}. If <code>null</code> then nothing
 * will be set.
 * @return An instance of {@link JSONMetadataParser}.
 */
public static JSONMetadataParser createJSONMetadataParser(
    String backend,
    Map<String, ? extends FieldConstraintParser<JsonNode>> fieldConstraintParsers) {
  FakeDataStoreParser<JsonNode> dsParser = new FakeDataStoreParser<>(backend);
  Extensions<JsonNode> extensions = new Extensions<>();
  extensions.registerDataStoreParser(dsParser.getDefaultName(), dsParser);
  extensions.addDefaultExtensions();
  if (fieldConstraintParsers != null) {
    for (Entry<String, ? extends FieldConstraintParser<JsonNode>> checker : fieldConstraintParsers.entrySet()) {
      extensions.registerFieldConstraintParser(checker.getKey(), checker.getValue());
    }
  }
  return new JSONMetadataParser(
      extensions,
      new DefaultTypes(),
      JsonNodeFactory.withExactBigDecimals(false));
}
com.redhat.lightblue.metadata.parserJSONMetadataParser<init>

Popular methods of JSONMetadataParser

  • parseEntityMetadata
  • getExtensions
  • parseEntityInfo
  • parseEntitySchema
  • putValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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