Class MetricsSniffer

    • Constructor Detail

      • MetricsSniffer

        public MetricsSniffer()
    • Method Detail

      • getAnnotationTypes

        public Class<? extends Annotation>[] getAnnotationTypes()
        Description copied from interface: Sniffer
        Returns the list of annotations types that this sniffer is interested in. If an application bundle contains at least one class annotated with one of the returned annotations, the deployment process will not call the handles method but will invoke the containers deployers as if the handles method had been called and returned true.
        Returns:
        list of annotations this sniffer is interested in or an empty array
      • handles

        public boolean handles​(DeploymentContext context)
        Description copied from interface: Sniffer
        Returns true if the passed file or directory is recognized by this sniffer.
        Specified by:
        handles in interface Sniffer
        Overrides:
        handles in class MicroProfileSniffer
        Parameters:
        context - deployment context
        Returns:
        true if the location is recognized by this sniffer
      • handles

        public boolean handles​(ReadableArchive archive)
        Description copied from interface: Sniffer
        Returns true if the passed file or directory is recognized by this sniffer.
        Specified by:
        handles in interface Sniffer
        Overrides:
        handles in class MicroProfileSniffer
        Parameters:
        archive - the file or directory abstracted as an archive resources from the source archive.
        Returns:
        true if the location is recognized by this sniffer
      • getModuleType

        public String getModuleType()
        Description copied from interface: Sniffer
        Returns the container type associated with this sniffer
        Returns:
        the container type