-
-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5da32e3
commit 539a122
Showing
6 changed files
with
77 additions
and
50 deletions.
There are no files selected for viewing
19 changes: 16 additions & 3 deletions
19
classlib/src/main/java/org/teavm/classlib/ResourceSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
/* | ||
* Copyright 2015 Alexey Andreev. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.teavm.classlib; | ||
|
||
import org.teavm.model.ListableClassReaderSource; | ||
|
||
/** | ||
* | ||
* @author Alexey Andreev | ||
*/ | ||
public interface ResourceSupplier { | ||
String[] supplyResources(ClassLoader classLoader, ListableClassReaderSource classSource); | ||
String[] supplyResources(ResourceSupplierContext context); | ||
} |
31 changes: 31 additions & 0 deletions
31
classlib/src/main/java/org/teavm/classlib/ResourceSupplierContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2015 Alexey Andreev. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.teavm.classlib; | ||
|
||
import java.util.Properties; | ||
import org.teavm.model.ListableClassReaderSource; | ||
|
||
/** | ||
* | ||
* @author Alexey Andreev | ||
*/ | ||
public interface ResourceSupplierContext { | ||
ClassLoader getClassLoader(); | ||
|
||
ListableClassReaderSource getClassSource(); | ||
|
||
Properties getProperties(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
html4j/src/main/java/org/teavm/html4j/HTML4jResourceSupplier.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
html4j/src/main/resources/META-INF/services/org.teavm.classlib.ResourceSupplier
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters