The key object to get the entry point(s) of a project. The entry points are computed w.r.t.
to the analysis mode of the project.
Examples:
To get the entry point information use the Project's get use:
val EntryPointInformation = project.get(EntryPointKey)
,
The example defines at least two methods as entry points:
all methods in "com.test.Main" with the name "main", i.e. if more than one method
named "main" exists all are added.
the method in "com.test.Main" with the name "increase" that requires an integer
parameter and also return an integer. If a method descriptor is given, duplicates
can't exist.
The entry point analysis is not sufficient when it comes – for example – to
non-traceable callbacks; i.e., calls that are implicitly triggered by the JVM,
a custom framework, a custom web server or others.
To overcome that limitation, the key provides a mechanism to specify individual
entry points via the configuration file. To use that mechanism, it's required to add
the following config key to the configuration file.
The general format of the JSON key that can be added to the application.conf or
reference.conf.
As the previous definition suggests, each entry point definition consists of the
declaringClass and name. The optional third parameter is the method descriptor.
The key object to get the entry point(s) of a project. The entry points are computed w.r.t. to the analysis mode of the project.
To get the entry point information use the
Project
'sget
use:val EntryPointInformation = project.get(EntryPointKey)
The example defines at least two methods as entry points:
The entry point analysis is not sufficient when it comes – for example – to non-traceable callbacks; i.e., calls that are implicitly triggered by the JVM, a custom framework, a custom web server or others. To overcome that limitation, the key provides a mechanism to specify individual entry points via the configuration file. To use that mechanism, it's required to add the following config key to the configuration file. The general format of the JSON key that can be added to the
application.conf
orreference.conf
.As the previous definition suggests, each entry point definition consists of the
declaringClass
andname
. The optional third parameter is the method descriptor.