Class Main.MainFilter

java.lang.Object
com.sun.enterprise.module.bootstrap.Main.MainFilter
All Implemented Interfaces:
Filter, IndexedFilter
Enclosing class:
Main

private static class Main.MainFilter extends Object implements IndexedFilter
This filter matches against the name, including only matching a ModuleStartup with no name if name is null (unlike a normal "null" returned from name, which acts as a wildcard for the name)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    The name given here will match the ModuleStartup
  • Method Summary

    Modifier and Type
    Method
    Description
    If this returns non-null then this index will be used to limit the set of Descriptors that will be passed to the matches method.
    If this returns non-null then this name will be used to limit the set of Descriptors that will be passed to the matches method.
    boolean
    Returns true if this filter matches the given object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      private final String name
  • Constructor Details

    • MainFilter

      private MainFilter(String name)
      The name given here will match the ModuleStartup
      Parameters:
      name - The name of the ModuleStartup to find. If null this Filter will only match ModuleStartups with no name
  • Method Details

    • matches

      public boolean matches(Descriptor d)
      Description copied from interface: Filter
      Returns true if this filter matches the given object
      Specified by:
      matches in interface Filter
      Parameters:
      d - The object to match against this filter. May not be null
      Returns:
      true if this filter matches the object
    • getAdvertisedContract

      public String getAdvertisedContract()
      Description copied from interface: IndexedFilter
      If this returns non-null then this index will be used to limit the set of Descriptors that will be passed to the matches method. Only those descriptors that have an AdverisedContract of this value will be passed to the matches method.
      Specified by:
      getAdvertisedContract in interface IndexedFilter
      Returns:
      If non null this will limit the descriptors passed to the matches method to those that have this contract in their set of advertised contracts
    • getName

      public String getName()
      Description copied from interface: IndexedFilter
      If this returns non-null then this name will be used to limit the set of Descriptors that will be passed to the matches method. Only those descriptors that has an name of this value will be passed to the matches method.
      Specified by:
      getName in interface IndexedFilter
      Returns:
      If non null this will limit the descriptors passed to the matches method to those that have name