Class RuntimeHook
java.lang.Object
net.uptheinter.interceptify.internal.RuntimeHook
This is the primary point at which intercepting logic kicks off.
The class doesn't do all that much now but exists for the purposes
of facilitating Java Agent functionality in the future.
As should be obvious from the package name, this class is internal.
Use EntryPoint for your needs. This class is not subject to semantic
versioning rules as you shouldn't be using it.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init
(StartupConfig cfg) This function kicks everything off, but you should useEntryPoint
- this class may be changed arbitrarily in future releases.static void
premain
(String args, Instrumentation instr) This function should be called by the JVM, however, you could also ostensibly call it from your own Java Agent - though since multiple Java Agents can be registered, such a scenario is unsupported.
-
Method Details
-
init
This function kicks everything off, but you should useEntryPoint
- this class may be changed arbitrarily in future releases.- Parameters:
cfg
- an implementation of aStartupConfig
-
premain
This function should be called by the JVM, however, you could also ostensibly call it from your own Java Agent - though since multiple Java Agents can be registered, such a scenario is unsupported.- Parameters:
args
- arguments from the JVMinstr
- an Instrumentation instance.
-