You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a complete class definition from another application in the form of a string, as well as some information about it like the class and package name. How can I pass use this information to create and load the class using the Byte Buddy?
PS: The classes have to implement an interface which my application knows about.
The text was updated successfully, but these errors were encountered:
Are those classes described as Java source code? Byte Buddy operates on the byte code level. You probably require a Java compiler API. Javac offers such an API for example.
Yes, the classes are java sources. I am using the Java Compiler API but there is a problem that the compiler does not work on production machines as it requires the JDK!
Is it possible for you to consider this use-case Byte Buddy?
Byte Buddy is language agnostic by design, it will never contain a compiler, sorry. The code would not share any requirements, it would make more sense to write a different library for that. I am sure, there exists something suited to your needs already, though.
I am getting a complete class definition from another application in the form of a string, as well as some information about it like the class and package name. How can I pass use this information to create and load the class using the Byte Buddy?
PS: The classes have to implement an interface which my application knows about.
The text was updated successfully, but these errors were encountered: