77import java .io .InputStream ;
88import java .net .URL ;
99
10- //import play.inject.Injector; -> Scala stuff
11- //import play.libs.Scala;
12-
13- /**
14- * A Play application.
15- *
16- * Application creation is handled by the framework engine.
17- */
1810public interface Application {
1911
20- /**
21- * Get the underlying Scala application.
22- *
23- * @
24- */
25- //play.api.Application getWrappedApplication();
26-
27- /**
28- * Get the application configuration.
29- *
30- * @
31- */
32- //Configuration configuration();
33-
34- /**
35- * Get the injector for this application.
36- *
37- * @
38- */
39- //Injector injector();
40-
41- /**
42- * Get the application path.
43- *
44- * @
45- */
46- default File path () {
47- }
48-
49- /**
50- * Get the application classloader.
51- *
52- * @
53- */
54- default ClassLoader classloader () {
55-
56- }
57-
58- /**
59- * Get a file relative to the application root path.
60- *
61- * @param relativePath relative path of the file to fetch
62- * @
63- */
64- default File getFile (String relativePath ) {
65-
66- }
67-
68- /**
69- * Get a resource from the classpath.
70- *
71- * @param relativePath relative path of the resource to fetch
72- * @
73- */
74- default URL resource (String relativePath ) {
12+ default File path () {
13+ return null ;
14+ }
7515
76- }
16+ default ClassLoader classloader () {
17+ return null ;
18+ }
7719
78- /**
79- * Get a resource stream from the classpath.
80- *
81- * @param relativePath relative path of the resource to fetch
82- * @
83- */
84- default InputStream resourceAsStream (String relativePath ) {
20+ default File getFile (String relativePath ) {
21+ return null ;
22+ }
8523
86- }
24+ default URL resource (String relativePath ) {
25+ return null ;
26+ }
8727
88- }
28+ default InputStream resourceAsStream (String relativePath ) {
29+ return null ;
30+ }
31+ }
0 commit comments