Class FrontendDependencies

    • Constructor Detail

      • FrontendDependencies

        public FrontendDependencies​(ClassFinder finder)
        Default Constructor.
        Parameters:
        finder - the class finder
      • FrontendDependencies

        public FrontendDependencies​(ClassFinder finder,
                                    boolean generateEmbeddableWebComponents)
        Secondary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.
        Parameters:
        finder - the class finder
        generateEmbeddableWebComponents - true checks the WebComponentExporter classes for dependencies. true is default for FrontendDependencies(ClassFinder)
      • FrontendDependencies

        public FrontendDependencies​(ClassFinder finder,
                                    boolean generateEmbeddableWebComponents,
                                    boolean useV14Bootstrap,
                                    FeatureFlags featureFlags)
        Tertiary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.
        Parameters:
        finder - the class finder
        generateEmbeddableWebComponents - true checks the WebComponentExporter classes for dependencies. true is default for FrontendDependencies(ClassFinder)
        useV14Bootstrap - whether we are in legacy V14 bootstrap mode
        featureFlags - available feature flags and their status
    • Method Detail

      • getPackages

        public Map<String,​String> getPackages()
        Get all npm packages the application depends on.
        Returns:
        the set of npm packages
      • getPwaConfiguration

        public PwaConfiguration getPwaConfiguration()
        Get the PWA configuration of the application.
        Returns:
        the PWA configuration
      • getModules

        public List<String> getModules()
        Get all ES6 modules needed for run the application. Modules that are theme dependencies are guaranteed to precede other modules in the result.
        Returns:
        list of JS modules
      • getScripts

        public Set<String> getScripts()
        Get all the JS files used by the application.
        Returns:
        the set of JS files
      • getCss

        public Set<CssData> getCss()
        Get all the CSS files used by the application.
        Returns:
        the set of CSS files
      • getClasses

        public Set<String> getClasses()
        Get all Java classes considered when looking for used dependencies.
        Returns:
        the set of JS files
      • getEndPoints

        public Collection<EndPointData> getEndPoints()
        Get all entryPoints in the application.
        Returns:
        the set of JS files
      • isExperimental

        protected final boolean isExperimental​(String className)