Package org.eclipse.sisu.plexus
Class LazyPlexusBean<T>
- java.lang.Object
-
- org.eclipse.sisu.plexus.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.
-
-
Constructor Summary
Constructors Constructor Description LazyPlexusBean(BeanEntry<com.google.inject.name.Named,T> bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.Class<T>
getImplementationClass()
java.lang.String
getKey()
T
getValue()
T
setValue(T value)
java.lang.String
toString()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry<java.lang.String,T>
-
getValue
public T getValue()
- Specified by:
getValue
in interfacejava.util.Map.Entry<java.lang.String,T>
-
setValue
public T setValue(T value)
- Specified by:
setValue
in interfacejava.util.Map.Entry<java.lang.String,T>
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfacePlexusBean<T>
- Returns:
- Human readable description
-
getImplementationClass
public java.lang.Class<T> getImplementationClass()
- Specified by:
getImplementationClass
in interfacePlexusBean<T>
- Returns:
- Bean implementation class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-