Skip to content

Commit

Permalink
Adding java example
Browse files Browse the repository at this point in the history
  • Loading branch information
kwest committed Apr 26, 2021
1 parent 5c44a2e commit b683220
Show file tree
Hide file tree
Showing 9 changed files with 6,027 additions and 4 deletions.
14 changes: 14 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 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 b683220

Please sign in to comment.