Class ICUService.SimpleFactory

java.lang.Object
com.ibm.icu.impl.ICUService.SimpleFactory
All Implemented Interfaces:
ICUService.Factory
Enclosing class:
ICUService

public static class ICUService.SimpleFactory extends Object implements ICUService.Factory
A default implementation of factory. This provides default implementations for subclasses, and implements a singleton factory that matches a single id and returns a single (possibly deferred-initialized) instance. This implements updateVisibleIDs to add a mapping from its ID to itself if visible is true, or to remove any existing mapping for its ID if visible is false.
  • Field Details

    • instance

      protected Object instance
    • id

      protected String id
    • visible

      protected boolean visible
  • Constructor Details

    • SimpleFactory

      public SimpleFactory(Object instance, String id)
      Convenience constructor that calls SimpleFactory(Object, String, boolean) with visible true.
    • SimpleFactory

      public SimpleFactory(Object instance, String id, boolean visible)
      Construct a simple factory that maps a single id to a single service instance. If visible is true, the id will be visible. Neither the instance nor the id can be null.
  • Method Details