Package org.eclipse.sisu.plexus
Class PlexusAnnotatedMetadata
- java.lang.Object
-
- org.eclipse.sisu.plexus.PlexusAnnotatedMetadata
-
- All Implemented Interfaces:
PlexusBeanMetadata
public final class PlexusAnnotatedMetadata extends java.lang.Object implements PlexusBeanMetadata
RuntimePlexusBeanMetadatabased onBeanPropertyannotations.
-
-
Constructor Summary
Constructors Constructor Description PlexusAnnotatedMetadata(java.util.Map<?,?> variables)Provides runtime Plexus metadata based on simple property annotations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.codehaus.plexus.component.annotations.ConfigurationgetConfiguration(org.eclipse.sisu.bean.BeanProperty<?> property)Returns @Configurationmetadata for the given property of the Plexus bean.org.codehaus.plexus.component.annotations.RequirementgetRequirement(org.eclipse.sisu.bean.BeanProperty<?> property)Returns @Requirementmetadata for the given property of the Plexus bean.booleanisEmpty()
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePlexusBeanMetadata- Returns:
trueif there is no more metadata; otherwisefalse
-
getConfiguration
public org.codehaus.plexus.component.annotations.Configuration getConfiguration(org.eclipse.sisu.bean.BeanProperty<?> property)
Description copied from interface:PlexusBeanMetadataReturns @Configurationmetadata for the given property of the Plexus bean.- Specified by:
getConfigurationin interfacePlexusBeanMetadata- Parameters:
property- The bean property- Returns:
- Configuration metadata;
nullif no such metadata is available
-
getRequirement
public org.codehaus.plexus.component.annotations.Requirement getRequirement(org.eclipse.sisu.bean.BeanProperty<?> property)
Description copied from interface:PlexusBeanMetadataReturns @Requirementmetadata for the given property of the Plexus bean.- Specified by:
getRequirementin interfacePlexusBeanMetadata- Parameters:
property- The bean property- Returns:
- Requirement metadata;
nullif no such metadata is available
-
-