Class Context

java.lang.Object
com.coditory.quark.context.Context
All Implemented Interfaces:
Closeable, AutoCloseable

public final class Context extends Object implements Closeable
  • Method Details

    • scanPackage

      @NotNull public static @NotNull Context scanPackage(@NotNull @NotNull Class<?> type)
    • builder

      @NotNull public static @NotNull ContextBuilder builder()
    • getName

      @NotNull public @NotNull String getName()
    • get

      @NotNull public <T> T get(@NotNull @NotNull Class<T> type)
    • getOrNull

      @Nullable public <T> T getOrNull(@NotNull @NotNull Class<T> type)
    • get

      @NotNull public <T> T get(@NotNull @NotNull Class<T> type, @NotNull @NotNull String name)
    • get

      @NotNull public <T> T get(@NotNull @NotNull BeanDescriptor<T> descriptor)
    • getOrNull

      @Nullable public <T> T getOrNull(@NotNull @NotNull Class<T> type, @NotNull @NotNull String name)
    • getOrNull

      @Nullable public <T> T getOrNull(@NotNull @NotNull BeanDescriptor<T> descriptor)
    • contains

      public boolean contains(@NotNull @NotNull Class<?> type)
    • contains

      public boolean contains(@NotNull @NotNull String name)
    • contains

      public boolean contains(@NotNull @NotNull Class<?> type, @NotNull @NotNull String name)
    • getAll

      @NotNull public <T> @NotNull List<T> getAll(@NotNull @NotNull Class<T> type)
    • getAllOrEmpty

      @NotNull public <T> @NotNull List<T> getAllOrEmpty(@NotNull @NotNull Class<T> type)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • toString

      public String toString()
      Overrides:
      toString in class Object