Class SimplePrivateFieldServiceClass


  • public class SimplePrivateFieldServiceClass
    extends java.lang.Object
    A class that uses a private Service field and no setter. This is approach is common in DI frameworks like Guice and Wicket IoC.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Service service  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String useService()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • SimplePrivateFieldServiceClass

        public SimplePrivateFieldServiceClass()
    • Method Detail

      • useService

        public java.lang.String useService()