Class HamletGen
java.lang.Object
org.apache.hadoop.yarn.webapp.hamlet2.HamletGen
Generates a specific hamlet implementation class from a spec class
using a generic hamlet implementation class.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HamletGen
public HamletGen()
-
-
Method Details
-
generate
public void generate(Class<?> specClass, Class<?> implClass, String outputName, String outputPkg) throws IOException Generate a specific Hamlet implementation from a spec.- Parameters:
specClass- holds hamlet interfaces. e.g.HamletSpecimplClass- a generic hamlet implementation. e.g.HamletImploutputName- name of the output class. e.g.HamletoutputPkg- package name of the output class.- Throws:
IOException- io error occur.
-
main
- Throws:
Exception
-