Package org.apache.juneau.cp
Class BeanStoreEntry<T>
java.lang.Object
org.apache.juneau.cp.BeanStoreEntry<T>
- Type Parameters:
- T- The bean type.
Represents a bean in a 
BeanStore.
 A bean entry consists of the following:
- A class type.
- A bean or bean supplier that returns an instance of the class type. This can be a subclass of the type.
- An optional name.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> BeanStoreEntry<T>Static creator.get()Returns the bean associated with this entry.getName()Returns the name associated with this entry.getType()Returns the type this bean is associated with.booleanReturnstrue if this bean is exactly of the specified type.booleanReturnstrue if this bean is exactly of the specified type and has the specified name.protected JsonMapReturns the properties in this object as a simple map for debugging purposes.
- 
Constructor Details- 
BeanStoreEntryConstructor.- Parameters:
- type- The class type to associate with the bean.
- bean- The bean supplier.
- name- Optional name to associate with the bean. Can be- null .
 
 
- 
- 
Method Details- 
createStatic creator.- Type Parameters:
- T- The class type to associate with the bean.
- Parameters:
- type- The class type to associate with the bean.
- bean- The bean supplier.
- name- Optional name to associate with the bean. Can be- null .
- Returns:
- A new bean store entry.
 
- 
matchesReturnstrue if this bean is exactly of the specified type.- Parameters:
- type- The class to check. Returns- false if- null .
- Returns:
- true if this bean is exactly of the specified type.
 
- 
matchesReturnstrue if this bean is exactly of the specified type and has the specified name.- Parameters:
- type- The class to check. Returns- false if- null .
- name- The name to check. Can be- null to only match if name of entry is- null .
- Returns:
- true if this bean is exactly of the specified type and has the specified name.
 
- 
getReturns the bean associated with this entry.- Returns:
- The bean associated with this entry.
 
- 
getTypeReturns the type this bean is associated with.- Returns:
- The type this bean is associated with.
 
- 
getNameReturns the name associated with this entry.- Returns:
- the name associated with this entry.  null if no name is associated.
 
- 
propertiesReturns the properties in this object as a simple map for debugging purposes.- Returns:
- The properties in this object as a simple map.
 
 
-