Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1747

Move InjectionPoint one level up in DroneContext

XMLWordPrintable

      Instead of having

      context.getDrone(InjectionPoint<?>)
      context.getDroneConfiguration(InjectionPoint<?>)
      

      provide rather

      context.get(InjectionPoint<?>).getInstance() // type defined by IP
      context.get(InjectionPoint<?>).getInstanceAs(Class<?>)
      context.get(InjectionPoint<?>).getConfigurationAs(Class<?>)
      context.get(InjectionPoint<?>).getMetadataAs(String, Class<?>)
      
      

      Implementation note: We might provide NullInjectionPoint to avoid people doing null checks. Or, we can throw exception instead.

              tkriz_jira Tadeas Kriz (Inactive)
              kpiwko Karel Piwko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: