Lines Matching full:service
19 * even when service is removed from the build.
53 * generate an instance of the service. ICUServiceKeys define how
63 * to provide a fully unique identifier for the service object,
121 * identify an instance of the service in the cache. A
125 * instantiate the service.</p>
207 * <p>An implementing ICUServiceFactory generates the service objects maintained by the
208 * service. A factory generates a service object from a key,
217 * <p>Create a service object from the key, if this factory
221 * the service's getKey(ICUServiceKey, String[], ICUServiceFactory) method
223 * the service would have created prior to the factory's
224 * registration with the service. This can change the
228 * @param key the service key.
229 * @param service the service with which this factory is registered.
231 * @return the service object, or NULL if the factory does not support the key.
233 virtual UObject* create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const = 0;
292 * service instance. If visible is TRUE, the ID will be visible.
296 * @param instanceToAdopt the service instance to adopt.
297 * @param id the ID to assign to this service instance.
308 * <p>This implementation returns a clone of the service instance if the factory's ID is equal to
309 * the key's currentID. Service and prefix are ignored.</p>
311 * @param key the service key.
312 * @param service the service with which this factory is registered.
314 * @return the service object, or NULL if the factory does not support the key.
316 virtual UObject* create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const;
365 * or removed from the service. Subclasses can provide
374 * <p>This method is called when the service changes. At the time of the
375 * call this listener is registered with the service. It must
378 * @param service the service that changed.
380 virtual void serviceChanged(const ICUService& service) const = 0;
442 * <p>A Service provides access to service objects that implement a
443 * particular service, e.g. transliterators. Users provide a String
444 * id (for example, a locale string) to the service, and get back an
445 * object for that id. Service objects can be any kind of object. A
446 * new service object is returned for each query. The caller is
450 * query for the service. The service also defines a mechanism to
453 * retrieve a service object.</p>
455 * <p>Service objects are instantiated by ICUServiceFactory objects
456 * registered with the service. The service queries each
458 * earliest registered, until one returns a service object. If none
459 * responds with a service object, a fallback ID is generated, and the
460 * process repeats until a service object is returned or until the ID
463 * <p>In ICU 2.4, UObject (the base class of service instances) does
467 * of the service instances. This may change in future releases of
471 * unregistered with the service. When registered, an
474 * unregistered, it is removed from the service and can no longer be
475 * located through it. Service objects generated by this factory and
478 * <p>If a service has variants (e.g., the different variants of
480 * ICUServiceKey to determine the variant of a service to generate.
495 * supported by the service (although queries aren't restricted to
505 * the service. ICUService provides a default EventListener
507 * service. When the service changes, the ServiceListener's
508 * serviceChanged method is called with the service as the
515 * be registered with the service, or to define their own listener
539 * All the factories registered with this service.
544 * The service cache.
580 * <p>Return the name of this service. This will be the empty string if none was assigned.
583 * @param result an output parameter to contain the name of this service.
584 * @return the name of this service.
594 * @return the service instance, or NULL.
605 * @return the service instance, or NULL.
614 * @return the service instance, or NULL.
619 * <p>Given a key, return a service object, and, if actualReturn
621 * first element of actualReturn. If no service object matches
626 * registered factory, in order. If none generates a service
628 * the key, until either a factory returns a service object, or the key
638 * @return the service instance, or NULL.
652 * @return the service instance, or NULL.
667 * <p>Return a snapshot of the visible IDs for this service. This
671 * service in subsequent calls.</p>
734 * IDs for this service. This set will not change as factories
737 * be visible and supported by the service in subsequent calls,
773 * <p>Register a service instance with the provided ID. The ID will be
775 * getVisibleIDs if visible is TRUE. The service instance will be adopted and
795 * must not be modified subsequent to this call. The service owns
813 * the factory will be removed from the service factory list and
826 * </p>Reset the service to the default factories. The factory
834 * <p>Return TRUE if the service is in its default state.</p>
859 * @param instance the service instance to clone.
872 * <p>Create a factory that wraps a single service object. Called by registerInstance.</p>
876 * @param instanceToAdopt the service instance to adopt.
877 * @param id the ID to assign to this service instance.
899 * <p>Default handler for this service if no factory in the factory list
907 * @return the service instance, or NULL.
912 * <p>Clear caches maintained by this service.</p>
915 * that need to be cleared when the service changes. Subclasses
929 * @return TRUE if the service accepts the listener.
934 * <p>Notify the listener of a service change.</p>
949 * <p>Clear only the service cache.</p>
951 * <p>This can be called by subclasses when a change affects the service