-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathStickyAPI.java
More file actions
40 lines (34 loc) · 1.13 KB
/
StickyAPI.java
File metadata and controls
40 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Copyright (c) 2020 DumbDogDiner <dumbdogdiner.com>. All rights reserved.
* Licensed under the MIT license, see LICENSE for more information...
*/
package com.dumbdogdiner.stickyapi;
import java.io.InputStream;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.logging.Logger;
import lombok.Getter;
import lombok.Setter;
/**
* <h1>StickyAPI</h1> Utility methods, classes and potentially
* code-dupe-annihilating code for DDD plugins.
*
* @author DumbDogDiner (dumbdogdiner.com)
* @version 2.0.0
*/
public class StickyAPI {
@Getter
public static Logger logger = Logger.getLogger("StickyAPI");
@Getter
@Setter
private static ExecutorService pool = Executors.newCachedThreadPool();
/**
* Provides a wrapper for {@link java.lang.Class#getResourceAsStream(String)} (String)}
* @param resourceName The resource to get
* @return an {@link InputStream} to that resource
*/
public static InputStream getResourceAsStream(String resourceName){
return StickyAPI.class.getResourceAsStream(resourceName);
}
private StickyAPI() {}
}