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.Entryrepresenting a lazy @NamedPlexus 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.StringgetDescription()java.lang.Class<T>getImplementationClass()java.lang.StringgetKey()TgetValue()TsetValue(T value)java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
- Specified by:
getKeyin interfacejava.util.Map.Entry<java.lang.String,T>
-
getValue
public T getValue()
- Specified by:
getValuein interfacejava.util.Map.Entry<java.lang.String,T>
-
setValue
public T setValue(T value)
- Specified by:
setValuein interfacejava.util.Map.Entry<java.lang.String,T>
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfacePlexusBean<T>- Returns:
- Human readable description
-
getImplementationClass
public java.lang.Class<T> getImplementationClass()
- Specified by:
getImplementationClassin interfacePlexusBean<T>- Returns:
- Bean implementation class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-