BrightSide Workbench Full Report + Source Code
org.turro.elephant.snippet.Snippets Class Reference

Static Public Member Functions

static Optional< ISnippetServiceservice (String path)
 
static Snippets instance ()
 
static void reset ()
 

Static Public Attributes

static final String JSONPAR = "jsonpar"
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file Snippets.java.

Member Function Documentation

◆ instance()

static Snippets org.turro.elephant.snippet.Snippets.instance ( )
static

Definition at line 48 of file Snippets.java.

48  {
49  return INIT.instance(() -> new Snippets());
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

static void org.turro.elephant.snippet.Snippets.reset ( )
static

Definition at line 52 of file Snippets.java.

52  {
53  INIT.reset();
54  }

◆ service()

static Optional<ISnippetService> org.turro.elephant.snippet.Snippets.service ( String  path)
static

Definition at line 36 of file Snippets.java.

36  {
37  Class wsclass = instance().snippets.get(path);
38  if(wsclass != null) {
39  return Optional.ofNullable((ISnippetService) Reflections.of(wsclass).instance());
40  }
41  return Optional.empty();
42  }
Here is the call graph for this function:

Member Data Documentation

◆ JSONPAR

final String org.turro.elephant.snippet.Snippets.JSONPAR = "jsonpar"
static

Definition at line 34 of file Snippets.java.


The documentation for this class was generated from the following file: