Class AbstractComponentDescription

    • Constructor Detail

      • AbstractComponentDescription

        public AbstractComponentDescription()
    • Method Detail

      • resolveLibrary

        public File resolveLibrary​(String name,
                                   Version version)
        Description copied from interface: IComponentLibraryResolver
        Gets file to the library by its name
        Specified by:
        resolveLibrary in interface IComponentLibraryResolver
        Parameters:
        name - name of the resolving library, can't be null
        Returns:
        file corresponding to the resolving library or null if library with the same name wasn't found
      • resolveResource

        public File resolveResource​(String name,
                                    Version version)
        Description copied from interface: IComponentLibraryResolver
        Gets file to the library resource by its name
        Specified by:
        resolveResource in interface IComponentLibraryResolver
        Parameters:
        name - name of the resolving library resource, can't be null
        Returns:
        file corresponding to the resolving library resource or null if library resource with the same name wasn't found
      • getDelegate

        protected IComponentLibraryResolver getDelegate​(Version version)
        Gets delegate class for resolving component libraries from fragment plugin. This method create instance of class getting from #getDelegateClass().
        Returns:
        delegate class for resolving component libraries from fragment plugin, never null
        Throws:
        IllegalStateException - if #getDelegateClass() throw ClassNotFoundException or if error occured while creating instance of delegating class
      • getVersionPathPart

        protected String getVersionPathPart​(Version version)
        Gets string presentation of library path depending from runtime version
        Parameters:
        version - actual runtime version of libraries, can'be null
        Returns:
        string presentation of library path depending from runtime version, never null