EntryAnalysisService
The entry analysis service discovers the entry points of an application, which are shown in the workspace summary. It supports:
- Registering and unregistering
EntryPointDiscoveryimplementations - Discovering entry points for a workspace resource
The built-in discovery implementations cover:
JvmMainEntryPointDiscovery:public static void main(String[])methods.AndroidActivityEntryPointDiscovery:Activitysubclasses from the manifest.BukkitPluginEntryPointDiscovery:JavaPluginimplementations.FabricModEntryPointDiscovery:ModInitializerimplementations.ForgeModEntryPointDiscovery: Forge/NeoForge mod initializer implementations.VelocityPluginEntryPointDiscovery: Velocity plugin main classes.
Finding entry points
List<EntryPoint> entryPoints = entryAnalysisService.findEntryPoints(workspace, resource);
for (EntryPoint entryPoint : entryPoints)
logger.info("{} -> {}", entryPoint.kind().displayName(), entryPoint.targetPath());