Class ComponentWithInterfaceInjection

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getData()
      Returns the component's data
      void injectPrintService​(PrintService printService)
      The framework uses this method to inject the print service before handing the component over to a client.
      void printData()
      Prints the component's data using the injected print service
      void setData​(java.lang.String data)
      Sets the component's data
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait