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,
216 * <p>Create a service object from the key, if this factory
220 * the service's getKey(ICUServiceKey, String[], ICUServiceFactory) method
222 * the service would have created prior to the factory's
223 * registration with the service. This can change the
227 * @param key the service key.
228 * @param service the service with which this factory is registered.
230 * @return the service object, or NULL if the factory does not support the key.
232 virtual UObject* create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const = 0;
291 * service instance. If visible is TRUE, the ID will be visible.
295 * @param instanceToAdopt the service instance to adopt.
296 * @param id the ID to assign to this service instance.
307 * <p>This implementation returns a clone of the service instance if the factory's ID is equal to
308 * the key's currentID. Service and prefix are ignored.</p>
310 * @param key the service key.
311 * @param service the service with which this factory is registered.
313 * @return the service object, or NULL if the factory does not support the key.
315 virtual UObject* create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const;
364 * or removed from the service. Subclasses can provide
371 * <p>This method is called when the service changes. At the time of the
372 * call this listener is registered with the service. It must
375 * @param service the service that changed.
377 virtual void serviceChanged(const ICUService& service) const = 0;
439 * <p>A Service provides access to service objects that implement a
440 * particular service, e.g. transliterators. Users provide a String
441 * id (for example, a locale string) to the service, and get back an
442 * object for that id. Service objects can be any kind of object. A
443 * new service object is returned for each query. The caller is
447 * query for the service. The service also defines a mechanism to
450 * retrieve a service object.</p>
452 * <p>Service objects are instantiated by ICUServiceFactory objects
453 * registered with the service. The service queries each
455 * earliest registered, until one returns a service object. If none
456 * responds with a service object, a fallback ID is generated, and the
457 * process repeats until a service object is returned or until the ID
460 * <p>In ICU 2.4, UObject (the base class of service instances) does
464 * of the service instances. This may change in future releases of
468 * unregistered with the service. When registered, an
471 * unregistered, it is removed from the service and can no longer be
472 * located through it. Service objects generated by this factory and
475 * <p>If a service has variants (e.g., the different variants of
477 service to generate.
492 * supported by the service (although queries aren't restricted to
502 * the service. ICUService provides a default EventListener
504 * service. When the service changes, the ServiceListener's
505 * serviceChanged method is called with the service as the
512 * be registered with the service, or to define their own listener
536 * All the factories registered with this service.
541 * The service cache.
577 * <p>Return the name of this service. This will be the empty string if none was assigned.
580 * @param result an output parameter to contain the name of this service.
581 * @return the name of this service.
591 * @return the service instance, or NULL.
602 * @return the service instance, or NULL.
611 * @return the service instance, or NULL.
616 * <p>Given a key, return a service object, and, if actualReturn
618 * first element of actualReturn. If no service object matches
623 * registered factory, in order. If none generates a service
625 * the key, until either a factory returns a service object, or the key
635 * @return the service instance, or NULL.
649 * @return the service instance, or NULL.
664 * <p>Return a snapshot of the visible IDs for this service. This
668 * service in subsequent calls.</p>
731 * IDs for this service. This set will not change as factories
734 * be visible and supported by the service in subsequent calls,
770 * <p>Register a service instance with the provided ID. The ID will be
772 * getVisibleIDs if visible is TRUE. The service instance will be adopted and
792 * must not be modified subsequent to this call. The service owns
810 * the factory will be removed from the service factory list and
823 * </p>Reset the service to the default factories. The factory
831 * <p>Return TRUE if the service is in its default state.</p>
856 * @param instance the service instance to clone.
869 * <p>Create a factory that wraps a single service object. Called by registerInstance.</p>
873 service instance to adopt.
874 * @param id the ID to assign to this service instance.
896 * <p>Default handler for this service if no factory in the factory list
904 * @return the service instance, or NULL.
909 * <p>Clear caches maintained by this service.</p>
912 * that need to be cleared when the service changes. Subclasses
926 * @return TRUE if the service accepts the listener.
931 * <p>Notify the listener of a service change.</p>
946 * <p>Clear only the service cache.</p>
948 * <p>This can be called by subclasses when a change affects the service