forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JavaKit: add CustomJavaClassLoaderConstructible protocol
Swift projections of Java classes can conform to CustomJavaClassLoaderConstructible, to provide a custom class loader to be used when constructing new instances. Fixes: swiftlang#154
- Loading branch information
Showing
9 changed files
with
173 additions
and
58 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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,72 @@ | ||
// Auto-generated by Java-to-Swift wrapper generator. | ||
import JavaRuntime | ||
|
||
@JavaClass("java.lang.ClassLoader") | ||
open class JavaClassLoader: JavaObject { | ||
@JavaMethod | ||
open func getName() -> String | ||
|
||
@JavaMethod | ||
open func loadClass(_ arg0: String, _ arg1: Bool) throws -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func loadClass(_ arg0: String) throws -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func setSigners(_ arg0: JavaClass<JavaObject>?, _ arg1: [JavaObject?]) | ||
|
||
@JavaMethod | ||
open func getClassLoadingLock(_ arg0: String) -> JavaObject! | ||
|
||
@JavaMethod | ||
open func findLoadedClass(_ arg0: String) -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func findClass(_ arg0: String) throws -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func findClass(_ arg0: String, _ arg1: String) -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func resolveClass(_ arg0: JavaClass<JavaObject>?) | ||
|
||
@JavaMethod | ||
open func defineClass(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func defineClass(_ arg0: String, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) throws -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func findLibrary(_ arg0: String) -> String | ||
|
||
@JavaMethod | ||
open func findSystemClass(_ arg0: String) throws -> JavaClass<JavaObject>! | ||
|
||
@JavaMethod | ||
open func isRegisteredAsParallelCapable() -> Bool | ||
|
||
@JavaMethod | ||
open func getParent() -> JavaClassLoader! | ||
|
||
@JavaMethod | ||
open func setDefaultAssertionStatus(_ arg0: Bool) | ||
|
||
@JavaMethod | ||
open func setPackageAssertionStatus(_ arg0: String, _ arg1: Bool) | ||
|
||
@JavaMethod | ||
open func setClassAssertionStatus(_ arg0: String, _ arg1: Bool) | ||
|
||
@JavaMethod | ||
open func clearAssertionStatus() | ||
} | ||
extension JavaClass<JavaClassLoader> { | ||
@JavaStaticMethod | ||
public func getPlatformClassLoader() -> JavaClassLoader! | ||
|
||
@JavaStaticMethod | ||
public func getSystemClassLoader() -> JavaClassLoader! | ||
|
||
@JavaStaticMethod | ||
public func registerAsParallelCapable() -> Bool | ||
} |
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