Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
java.beans.beancontext

Interface BeanContextServiceProvider

  • All Known Implementing Classes:
    BeanContextServicesSupport.BCSSProxyServiceProvider

    public interface BeanContextServiceProvider

    One of the primary functions of a BeanContext is to act a as rendezvous between JavaBeans, and BeanContextServiceProviders.

    A JavaBean nested within a BeanContext, may ask that BeanContext to provide an instance of a "service", based upon a reference to a Java Class object that represents that service.

    If such a service has been registered with the context, or one of its nesting context's, in the case where a context delegate to its context to satisfy a service request, then the BeanContextServiceProvider associated with the service is asked to provide an instance of that service.

    The ServcieProvider may always return the same instance, or it may construct a new instance for each request.

    • Method Detail

      • getService

        Object getService(BeanContextServices bcs,
                        Object requestor,
                        Class serviceClass,
                        Object serviceSelector)
        Invoked by BeanContextServices, this method requests an instance of a service from this BeanContextServiceProvider.
        Parameters:
        bcs - The BeanContextServices associated with this particular request. This parameter enables the BeanContextServiceProvider to distinguish service requests from multiple sources.
        requestor - The object requesting the service
        serviceClass - The service requested
        serviceSelector - the service dependent parameter for a particular service, or null if not applicable.
        Returns:
        a reference to the requested service
      • releaseService

        void releaseService(BeanContextServices bcs,
                          Object requestor,
                          Object service)
        Invoked by BeanContextServices, this method releases a nested BeanContextChild's (or any arbitrary object associated with a BeanContextChild) reference to the specified service.
        Parameters:
        bcs - the BeanContextServices associated with this particular release request
        requestor - the object requesting the service to be released
        service - the service that is to be released
      • getCurrentServiceSelectors

        Iterator getCurrentServiceSelectors(BeanContextServices bcs,
                                          Class serviceClass)
        Invoked by BeanContextServices, this method gets the current service selectors for the specified service. A service selector is a service specific parameter, typical examples of which could include: a parameter to a constructor for the service implementation class, a value for a particular service's property, or a key into a map of existing implementations.
        Parameters:
        bcs - the BeanContextServices for this request
        serviceClass - the specified service
        Returns:
        the current service selectors for the specified serviceClass

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/beans/beancontext/beancontextserviceprovider.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut