Class LazyPlexusBean<T>

  • All Implemented Interfaces:
    java.util.Map.Entry<java.lang.String,​T>, PlexusBean<T>

    final class LazyPlexusBean<T>
    extends java.lang.Object
    implements PlexusBean<T>
    Map.Entry representing a lazy @Named Plexus bean; the bean is only retrieved when the value is requested.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private BeanEntry<com.google.inject.name.Named,​T> bean  
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyPlexusBean​(BeanEntry<com.google.inject.name.Named,​T> bean)  
    • Field Detail

      • bean

        private final BeanEntry<com.google.inject.name.Named,​T> bean
    • Constructor Detail

      • LazyPlexusBean

        LazyPlexusBean​(BeanEntry<com.google.inject.name.Named,​T> bean)
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<java.lang.String,​T>
      • getValue

        public T getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<java.lang.String,​T>
      • setValue

        public T setValue​(T value)
        Specified by:
        setValue in interface java.util.Map.Entry<java.lang.String,​T>
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface PlexusBean<T>
        Returns:
        Human readable description
      • getImplementationClass

        public java.lang.Class<T> getImplementationClass()
        Specified by:
        getImplementationClass in interface PlexusBean<T>
        Returns:
        Bean implementation class
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object