spark.servlet.SparkApplication Java Examples
The following examples show how to use
spark.servlet.SparkApplication.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CDISparkFilter.java From hammock with Apache License 2.0 | 5 votes |
@Override protected SparkApplication[] getApplications(FilterConfig filterConfig) throws ServletException { List<SparkApplication> applicationList = new ArrayList<>(); for(SparkApplication sparkApplication : sparkApplications) { applicationList.add(sparkApplication); } return applicationList.toArray(new SparkApplication[applicationList.size()]); }
Example #2
Source File: SparkPreFilter.java From gocd with Apache License 2.0 | 4 votes |
@Override protected SparkApplication[] getApplications(FilterConfig filterConfig) { return new SparkApplication[]{wac.getBean(Application.class)}; }
Example #3
Source File: TestSparkPreFilter.java From gocd with Apache License 2.0 | 4 votes |
public TestSparkPreFilter(SparkApplication application) { this.application = application; }
Example #4
Source File: TestSparkPreFilter.java From gocd with Apache License 2.0 | 4 votes |
@Override protected SparkApplication[] getApplications(FilterConfig filterConfig) throws ServletException { return new SparkApplication[]{application}; }