Class DeveloperContentService

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct

    @Service
    @Singleton
    public class DeveloperContentService
    extends Object
    implements org.glassfish.hk2.api.PostConstruct
    Maintains the in-memory representation for the customization points of the Java Web Start JNLP that a developer might provide inside his or her app client. During deployment, if such custom JNLP exists in the app client being deployed then the server combines that developer-provided JNLP with the server-generated JNLP to produce the JNLP document that is used for launching the app client.

    There are two aspects to this combination: merging the JNLP XML data itself and detecting and recording places in the developer-provided JNLP which refer to other resources - JARs, native libraries, other JNLP documents.

    The on-disk config file contains property settings for both types of XPath information. This service makes sure that the in-memory data is up-to-date with respect to the on-disk file. The server installation includes the config file in the installations's config directory. But for unusual circumstances, this class looks for the config file first in the domain's config directory and, if it is not there or is there but is not readable, then tries to read the file from the installations's config directory. Note that even if the installation's config is more recent than the domain's config this class will always prefer the domain's config file if it exists and is readable.

    Author:
    tjquinn
    • Constructor Detail

      • DeveloperContentService

        public DeveloperContentService()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct