Example usage for org.springframework.data.gemfire.config.annotation.support GemFireComponentClassTypeScanner GemFireComponentClassTypeScanner

List of usage examples for org.springframework.data.gemfire.config.annotation.support GemFireComponentClassTypeScanner GemFireComponentClassTypeScanner

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.config.annotation.support GemFireComponentClassTypeScanner GemFireComponentClassTypeScanner.

Prototype

protected GemFireComponentClassTypeScanner(Set<String> basePackages) 

Source Link

Document

Constructs an instance of the GemFireComponentClassTypeScanner initialized with the given Set of base packages to scan.

Usage

From source file:org.springframework.data.gemfire.config.annotation.support.GemFireComponentClassTypeScanner.java

/**
 * Factory method to construct an instance of the {@link GemFireComponentClassTypeScanner} initialized with
 * the given array of base packages to scan.
 *
 * @param basePackages array of base packages to scan for GemFire components.
 * @throws IllegalArgumentException if the array of base packages is {@literal null} or empty.
 * @return an initialized instance of {@link GemFireComponentClassTypeScanner}.
 * @see #GemFireComponentClassTypeScanner(Set)
 *//*from  ww w. jav  a 2s  . co m*/
public static GemFireComponentClassTypeScanner from(String... basePackages) {
    return new GemFireComponentClassTypeScanner(asSet(nullSafeArray(basePackages, String.class)));
}

From source file:org.springframework.data.gemfire.config.annotation.support.GemFireComponentClassTypeScanner.java

/**
 * Factory method to construct an instance of the {@link GemFireComponentClassTypeScanner} initialized with
 * the given {@link Iterable} of base packages to scan.
 *
 * @param basePackages {@link Iterable} of base packages to scan for GemFire components.
 * @throws IllegalArgumentException if the {@link Iterable} of base packages is {@literal null} or empty.
 * @return an initialized instance of {@link GemFireComponentClassTypeScanner}.
 * @see #GemFireComponentClassTypeScanner(Set)
 *///from   ww w  . jav  a2s.c  o m
public static GemFireComponentClassTypeScanner from(Iterable<String> basePackages) {
    return new GemFireComponentClassTypeScanner(
            stream(basePackages.spliterator(), false).collect(Collectors.toSet()));
}