Design of an HTTP Server that uses Reflection for Servlets
A Simple Network Application in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
getConstructors()
:
getConstructor()
:
newInstance()
newInstance()
requires onesetStreams()
in this case)Class
object's getMethod()
method to get a Method
objectMethod
object's
invoke(Object, Object...)
method (passing it the owning object and the actual
parameters)Class
object's getMethod()
method to get a Method
objectMethod
object's
invoke(null, Object...)
method