Tabnine Logo
ResourceFile$Finder.result
Code IndexAdd Tabnine to your IDE (free)

How to use
result
method
in
it.tidalwave.northernwind.core.model.ResourceFile$Finder

Best Java code snippets using it.tidalwave.northernwind.core.model.ResourceFile$Finder.result (Showing top 4 results out of 315)

origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

/*******************************************************************************************************************
 *
 ******************************************************************************************************************/
private List<ResourceFile> getFiles (final @Nonnull String prefix,
                   final @Nonnull String propertyFileName,
                   final @Nonnull ResourceFile folder,
                   final @Nonnull List<String> suffixes)
 {
  final List<ResourceFile> files = new ArrayList<>();
  for (final String localeSuffix : suffixes)
   {
    final String fileName = prefix + propertyFileName + localeSuffix + ".xml";
    log.trace(">>>> probing {} ...", folder.getPath().asString() + "/" + fileName);
    try
     {
      files.add(folder.findChildren().withName(fileName).result());
     }
    catch (NotFoundException e)
     {
      // ok. do nothing
     }
   }
  return files;
 }
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-model

return folder.findChildren().withName(localizedFileName).result();
origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

return folder.findChildren().withName(localizedFileName).result();
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-model

 /*******************************************************************************************************************
  *
  *
  ******************************************************************************************************************/
 @Nonnull
 private ResourceProperties loadProperties()
  throws IOException
  {
   final ResourceFile file = getFile();
   log.debug("loadProperties() for {}", file.getPath().asString());
   ResourceProperties properties = modelFactory.createProperties().withPropertyResolver(propertyResolver).build();
   try
    {
     final ResourceFile propertyFile = file.findChildren().withName("Properties.xml").result(); // FIXME reuse the inheritance helper
 //        log.trace(">>>> reading properties from {} ({})...", propertyFile.getPath().asString(), locale);
     @Cleanup final InputStream is = propertyFile.getInputStream();
     final ResourceProperties tempProperties =
 //            modelFactory.createProperties().build().as(Unmarshallable).unmarshal(is);
         modelFactory.createProperties().withPropertyResolver(propertyResolver).build().as(Unmarshallable).unmarshal(is);
 //        log.trace(">>>>>>>> read properties: {} ({})", tempProperties, locale);
     properties = properties.merged(tempProperties);
    }
   catch (NotFoundException e)
    {
     // ok, no properties
    }
   return properties;
  }
}
it.tidalwave.northernwind.core.modelResourceFile$Finderresult

Popular methods of ResourceFile$Finder

  • results
  • withName
  • withRecursion

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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