congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
JoyScanner
Code IndexAdd Tabnine to your IDE (free)

How to use
JoyScanner
in
jodd.joy

Best Java code snippets using jodd.joy.JoyScanner (Showing top 20 results out of 315)

origin: oblac/jodd

@Override
public JoyScanner setIgnoreExceptions(final boolean ignoreExceptions) {
  requireNotStarted(classScanner);
  this.ignoreExceptions = ignoreExceptions;
  return this;
}
origin: oblac/jodd

/**
 * Returns class scanner.
 */
public ClassScanner getClassScanner() {
  return requireStarted(classScanner);
}
origin: oblac/jodd

/**
 * Shortcut for {@link #scanClasspathOf(Class)}.
 */
@Override
public JoyScanner scanClasspathOf(final Object applicationObject) {
  requireNotStarted(classScanner);
  return scanClasspathOf(applicationObject.getClass());
}
origin: oblac/jodd

joyProps.start();
joyProxetta.start();
joyScanner.start();
joyScanner.stop();
origin: oblac/jodd

new AutomagicMadvocConfigurator(joyScannerSupplier.get().getClassScanner()) {
  @Override
  protected String createInfoMessage() {
origin: oblac/jodd

public JoddJoy() {
  appName = "joy";
  joyPaths = new JoyPaths();
  joyPaths.start();
  joyScanner = new JoyScanner();
  joyProps = new JoyProps(() -> appName);
  joyProxetta = new JoyProxetta();
  joyPetite =
    new JoyPetite(
      () -> appName,
      () -> joyProxetta,
      () -> joyProps,
      () -> joyScanner
    );
  joyDb = new JoyDb(
    () -> appName,
    () -> joyPetite,
    () -> joyProxetta,
    () -> joyScanner);
  joyMadvoc = new JoyMadvoc(
    () -> appName,
    () -> joyPetite,
    () -> joyProxetta,
    () -> joyProps,
    () -> joyScanner
  );
}
origin: oblac/jodd

initLogger();
origin: org.jodd/jodd-joy

joyProps.start();
joyProxetta.start();
joyScanner.start();
joyScanner.stop();
origin: oblac/jodd

/**
 * Creates and initializes Petite container.
 * It will be auto-magically configured by scanning the classpath.
 */
@Override
public void start() {
  initLogger();
  log.info("PETITE start  ----------");
  petiteContainer = createPetiteContainer();
  if (externalsCache) {
    petiteContainer.setExternalsCache(TypeCache.createDefault());
  }
  log.info("Web application? " + isWebApplication);
  if (!isWebApplication) {
    // make session scope to act as singleton scope
    // if this is not a web application (and http session is not available).
    petiteContainer.registerScope(SessionScope.class, new SingletonScope(petiteContainer));
  }
  // load parameters from properties files
  petiteContainer.defineParameters(joyPropsSupplier.get().getProps());
  // automagic configuration
  if (autoConfiguration) {
    final AutomagicPetiteConfigurator automagicPetiteConfigurator =
      new AutomagicPetiteConfigurator(petiteContainer);
    automagicPetiteConfigurator.registerAsConsumer(joyScannerSupplier.get().getClassScanner());
  }
  petiteContainerConsumers.accept(this.petiteContainer);
  log.info("PETITE OK!");
}
origin: org.jodd/jodd-joy

public JoddJoy() {
  appName = "joy";
  joyPaths = new JoyPaths();
  joyPaths.start();
  joyScanner = new JoyScanner();
  joyProps = new JoyProps(() -> appName);
  joyProxetta = new JoyProxetta();
  joyPetite =
    new JoyPetite(
      () -> appName,
      () -> joyProxetta,
      () -> joyProps,
      () -> joyScanner
    );
  joyDb = new JoyDb(
    () -> appName,
    () -> joyPetite,
    () -> joyProxetta,
    () -> joyScanner);
  joyMadvoc = new JoyMadvoc(
    () -> appName,
    () -> joyPetite,
    () -> joyProxetta,
    () -> joyProps,
    () -> joyScanner
  );
}
origin: org.jodd/jodd-joy

initLogger();
origin: oblac/jodd

@Override
public JoyScanner setIncludedJars(final String... includedJars) {
  requireNotStarted(classScanner);
  Collections.addAll(this.includedJars, includedJars);
  return this;
}
origin: org.jodd/jodd-joy

/**
 * Shortcut for {@link #scanClasspathOf(Class)}.
 */
@Override
public JoyScanner scanClasspathOf(final Object applicationObject) {
  requireNotStarted(classScanner);
  return scanClasspathOf(applicationObject.getClass());
}
origin: oblac/jodd

joyScannerSupplier.get().getClassScanner());
origin: org.jodd/jodd-joy

/**
 * Returns class scanner.
 */
public ClassScanner getClassScanner() {
  return requireStarted(classScanner);
}
origin: oblac/jodd

@Override
public JoyScanner setExcludedJars(final String... excludedJars) {
  requireNotStarted(classScanner);
  Collections.addAll(this.excludedJars, excludedJars);
  return this;
}
origin: org.jodd/jodd-joy

new AutomagicMadvocConfigurator(joyScannerSupplier.get().getClassScanner()) {
  @Override
  protected String createInfoMessage() {
origin: oblac/jodd

@Override
public JoyScanner setIncludedEntries(final String... includedEntries) {
  requireNotStarted(classScanner);
  Collections.addAll(this.includedEntries, includedEntries);
  return this;
}
origin: org.jodd/jodd-joy

/**
 * Creates and initializes Petite container.
 * It will be auto-magically configured by scanning the classpath.
 */
@Override
public void start() {
  initLogger();
  log.info("PETITE start  ----------");
  petiteContainer = createPetiteContainer();
  if (externalsCache) {
    petiteContainer.setExternalsCache(TypeCache.createDefault());
  }
  log.info("Web application? " + isWebApplication);
  if (!isWebApplication) {
    // make session scope to act as singleton scope
    // if this is not a web application (and http session is not available).
    petiteContainer.registerScope(SessionScope.class, new SingletonScope(petiteContainer));
  }
  // load parameters from properties files
  petiteContainer.defineParameters(joyPropsSupplier.get().getProps());
  // automagic configuration
  if (autoConfiguration) {
    final AutomagicPetiteConfigurator automagicPetiteConfigurator =
      new AutomagicPetiteConfigurator(petiteContainer);
    automagicPetiteConfigurator.registerAsConsumer(joyScannerSupplier.get().getClassScanner());
  }
  petiteContainerConsumers.accept(this.petiteContainer);
  log.info("PETITE OK!");
}
origin: oblac/jodd

/**
 * Defines class and it's classloader to scan. This is not required in Java8
 * and would not hurt anything if called. However, for Java9, you should
 * pass <i>any</i> user-application class, so Jodd can figure out the real
 * class path to scan.
 */
@Override
public JoyScanner scanClasspathOf(final Class applicationClass) {
  requireNotStarted(classScanner);
  appClasses.add(applicationClass);
  return this;
}
jodd.joyJoyScanner

Javadoc

Tiny JoyScanner kickstart.

Most used methods

  • <init>
  • getClassScanner
    Returns class scanner.
  • initLogger
  • requireNotStarted
  • requireStarted
  • scanClasspathOf
    Shortcut for #scanClasspathOf(Class).
  • start
    Configures scanner class finder. Works for all three scanners: Petite, DbOom and Madvoc. All scanner
  • stop

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now