Skip to content

Commit

Permalink
Merge pull request #121 from newrelic/kwest/lambda-1195
Browse files Browse the repository at this point in the history
Adding Java layer support
  • Loading branch information
Katie West authored Apr 26, 2021
2 parents 2fac934 + b683220 commit 63a3cc9
Show file tree
Hide file tree
Showing 23 changed files with 6,087 additions and 53 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,20 @@ custom:
disableLicenseKeySecret: true
```

#### `javaNewRelicHandler` (optional)

**Java runtimes only**. Only required if you are implementing the `RequestStreamHandler` interface.
Defaults to `RequestHandler` interface.
#### Accepted inputs:
- handleRequest
- handleStreamsRequest

```yaml
custom:
newRelic:
javaNewRelicHandler: handleStreamsRequest
```

## Supported Runtimes

This plugin currently supports the following AWS runtimes:
Expand All @@ -313,6 +327,8 @@ This plugin currently supports the following AWS runtimes:
- python3.6
- python3.7
- python3.8
- java11
- java8.al2

## Contributing

Expand Down
16 changes: 16 additions & 0 deletions examples/java/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.class
target
node_modules
/bin/
/.settings/
.project
.classpath
.idea

# Package Files
*.jar
*.war
*.ear

# Serverless directories
.serverless
20 changes: 20 additions & 0 deletions examples/java/java-example.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: com.amazonaws:aws-lambda-java-log4j2:1.1.0" level="project" />
<orderEntry type="library" name="Maven: com.amazonaws:aws-lambda-java-core:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.8.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.8.2" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.10" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.10" level="project" />
</component>
</module>
Loading

0 comments on commit 63a3cc9

Please sign in to comment.