-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed from Reflection 9.11 to an internally maintained version off …
…9.12-SNAPSHOT
- Loading branch information
Michael Hradek
committed
Aug 22, 2019
1 parent
38e940b
commit 370e5e0
Showing
47 changed files
with
6,364 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.reflections</groupId> | ||
<artifactId>reflections</artifactId> | ||
<version>0.9.12-custom</version> | ||
|
||
<parent> | ||
<groupId>com.michaelhradek</groupId> | ||
<artifactId>aurkitu-parent</artifactId> | ||
<version>0.0.7</version> | ||
<relativePath>..</relativePath> | ||
</parent> | ||
|
||
<name>Aurkitu Reflections</name> | ||
<description>Reflections - a Java runtime metadata analysis</description> | ||
<url>http://github.com/ronmamo/reflections</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>WTFPL</name> | ||
<url>http://www.wtfpl.net/</url> | ||
</license> | ||
<license> | ||
<name>The New BSD License</name> | ||
<url>http://www.opensource.org/licenses/bsd-license.html</url> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<url>https://github.com/ronmamo/reflections/issues</url> | ||
<connection>scm:git:git://github.com/ronmamo/reflections.git</connection> | ||
</scm> | ||
|
||
<issueManagement> | ||
<url>https://github.com/ronmamo/reflections/issues</url> | ||
<system>GitHub Issues</system> | ||
</issueManagement> | ||
|
||
<mailingLists> | ||
<mailingList> | ||
<name>google-code-reflections</name> | ||
<archive>http://groups.google.com/group/google-code-reflections</archive> | ||
</mailingList> | ||
</mailingLists> | ||
|
||
<developers> | ||
<developer> | ||
<email>ronmamo at gmail</email> | ||
</developer> | ||
</developers> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
|
||
<properties> | ||
<guava.version>20.0</guava.version> | ||
<javassist.version>3.21.0-GA</javassist.version> | ||
<jdk.version>1.7</jdk.version> | ||
<additionalparam>-Xdoclint:none</additionalparam> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
<version>${guava.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.javassist</groupId> | ||
<artifactId>javassist</artifactId> | ||
<version>${javassist.version}</version> | ||
<optional>false | ||
</optional> <!-- case: when not actually scanning with javassist or if using {@link Reflections.collect()} --> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.24</version> | ||
<optional>true</optional> <!-- case: when logging is not needed --> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>dom4j</groupId> | ||
<artifactId>dom4j</artifactId> | ||
<version>1.6.1</version> | ||
<optional>true</optional> <!-- case: when no xml de/serialization --> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<version>2.8.0</version> | ||
<optional>true</optional> <!-- case: when no json de/serialization --> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>servlet-api</artifactId> | ||
<version>2.5</version> | ||
<scope>provided</scope> | ||
<optional>true</optional> <!-- case: when no servlet environment --> | ||
</dependency> | ||
|
||
<!-- use any implementation you like --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<version>1.7.24</version> | ||
<optional>true</optional> <!-- case: when other logging implementation used or logging is not needed --> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.findbugs</groupId> | ||
<artifactId>jsr305</artifactId> | ||
<version>3.0.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<profiles> | ||
<profile> | ||
<id>build</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<additionalparam>-Xdoclint:none</additionalparam> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>bundle-manifest</id> | ||
<phase>process-classes</phase> | ||
<goals> | ||
<goal>manifest</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<instructions> | ||
<Import-Package> | ||
org.jboss.vfs.*;resolution:=optional, | ||
* | ||
</Import-Package> | ||
<Export-Package> | ||
org.reflections.* | ||
</Export-Package> | ||
<Bundle-SymbolicName>org.reflections</Bundle-SymbolicName> | ||
</instructions> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-enforcer-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>enforce</goal> | ||
</goals> | ||
<configuration> | ||
<rules> | ||
<requireProperty> | ||
<property>gpg.keyname</property> | ||
<message>gpg.keyname must be supplied using -D. | ||
create a key using gpg --gen-key or use existing one. | ||
</message> | ||
</requireProperty> | ||
<requireProperty> | ||
<property>gpg.passphrase</property> | ||
<message>gpg.passphrase must be supplied using -D. | ||
create a key using gpg --gen-key or use existing one. | ||
</message> | ||
</requireProperty> | ||
</rules> | ||
<fail>true</fail> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>${jdk.version}</source> | ||
<target>${jdk.version}</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
61 changes: 61 additions & 0 deletions
61
aurkitu-reflections/src/main/java/org/reflections/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package org.reflections; | ||
|
||
import com.google.common.base.Predicate; | ||
import org.reflections.adapters.MetadataAdapter; | ||
import org.reflections.scanners.Scanner; | ||
import org.reflections.serializers.Serializer; | ||
|
||
import javax.annotation.Nullable; | ||
import java.net.URL; | ||
import java.util.Set; | ||
import java.util.concurrent.ExecutorService; | ||
|
||
/** | ||
* Configuration is used to create a configured instance of {@link Reflections} | ||
* <p>it is preferred to use {@link org.reflections.util.ConfigurationBuilder} | ||
*/ | ||
public interface Configuration { | ||
/** | ||
* the scanner instances used for scanning different metadata | ||
*/ | ||
Set<Scanner> getScanners(); | ||
|
||
/** | ||
* the urls to be scanned | ||
*/ | ||
Set<URL> getUrls(); | ||
|
||
/** | ||
* the metadata adapter used to fetch metadata from classes | ||
*/ | ||
@SuppressWarnings({"RawUseOfParameterizedType"}) | ||
MetadataAdapter getMetadataAdapter(); | ||
|
||
/** | ||
* get the fully qualified name filter used to filter types to be scanned | ||
*/ | ||
@Nullable | ||
Predicate<String> getInputsFilter(); | ||
|
||
/** | ||
* executor service used to scan files. if null, scanning is done in a simple for loop | ||
*/ | ||
ExecutorService getExecutorService(); | ||
|
||
/** | ||
* the default serializer to use when saving Reflection | ||
*/ | ||
Serializer getSerializer(); | ||
|
||
/** | ||
* get class loaders, might be used for resolving methods/fields | ||
*/ | ||
@Nullable | ||
ClassLoader[] getClassLoaders(); | ||
|
||
/** | ||
* if true (default), expand super types after scanning, for super types that were not scanned. | ||
* <p>see {@link org.reflections.Reflections#expandSuperTypes()} | ||
*/ | ||
boolean shouldExpandSuperTypes(); | ||
} |
Oops, something went wrong.