Class JndiIntegration.JndiProvider<T>

  • All Implemented Interfaces:
    Provider<T>, javax.inject.Provider<T>
    Enclosing class:
    JndiIntegration

    static class JndiIntegration.JndiProvider<T>
    extends java.lang.Object
    implements Provider<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.naming.Context context  
      (package private) java.lang.String name  
      (package private) java.lang.Class<T> type  
    • Constructor Summary

      Constructors 
      Constructor Description
      JndiProvider​(java.lang.Class<T> type, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()
      Provides an instance of T.
      • Methods inherited from class java.lang.Object

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

      • context

        @Inject
        javax.naming.Context context
      • type

        final java.lang.Class<T> type
      • name

        final java.lang.String name
    • Constructor Detail

      • JndiProvider

        public JndiProvider​(java.lang.Class<T> type,
                            java.lang.String name)
    • Method Detail

      • get

        public T get()
        Description copied from interface: Provider
        Provides an instance of T.
        Specified by:
        get in interface Provider<T>
        Specified by:
        get in interface javax.inject.Provider<T>