Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4150127

unclear spec for BeanContextServicesSupport.getService

XMLWordPrintable

    • generic, sparc
    • generic, solaris_2.5



      Name: sdC67446 Date: 06/18/98


      The spec for method
      java.beans.beancontext.BeanContextServicesSupport.getService(
                                       BeanContextChild child,
                                       Object requestor,
                                       Class serviceClass,
                                       Object serviceSelector,
                                       BeanContextServiceRevokedListener bcsrl)

      says nothing about behavior when params are nulls.
      Currently method accept 'child' == null,
                              'serviceClass' == null,
                              'serviceSelector' == null
      and throws IllegalArgumentException if
                              'requestor' == null,
                              'bcsrl' == null.

      Also the behaviour is not clear if 'child' is not a child of
      this BeanContextServicesSupport.


      The doc says:
      -------------------------------------------------------------
      public Object getService(BeanContextChild child,
                               Object requestor,
                               Class serviceClass,
                               Object serviceSelector,
                               BeanContextServiceRevokedListener bcsrl)
                                 throws TooManyListenersException

            obtain a service which may be delegated
            Specified by:
                  getService in interface BeanContextServices
                  
      -------------------------------------------------
      ======================================================================

            shommel Scott Hommel (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: