public class MetadataUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<BeanArgument> |
BEAN_COMPARATOR |
Constructor and Description |
---|
MetadataUtil() |
Modifier and Type | Method and Description |
---|---|
static ComponentMetadata |
cloneComponentMetadata(ComponentMetadata source)
Clone a component metadata item, returning a mutable
instance.
|
static Metadata |
cloneMetadata(Metadata source) |
static Target |
cloneTarget(Target source)
Clone a target item, returning a mutable
instance.
|
static <T extends Metadata> |
createMetadata(Class<T> type)
Create a new metadata instance of the given type
|
static boolean |
isPrototypeScope(BeanMetadata metadata) |
static boolean |
isSingletonScope(BeanMetadata metadata) |
static List<BeanArgument> |
validateBeanArguments(List<BeanArgument> arguments) |
public static final Comparator<BeanArgument> BEAN_COMPARATOR
public static ComponentMetadata cloneComponentMetadata(ComponentMetadata source)
source
- The source metadata item.public static Target cloneTarget(Target source)
source
- The source target item.public static <T extends Metadata> T createMetadata(Class<T> type)
T
- type
- the class of the Metadata object to createpublic static List<BeanArgument> validateBeanArguments(List<BeanArgument> arguments)
public static boolean isPrototypeScope(BeanMetadata metadata)
public static boolean isSingletonScope(BeanMetadata metadata)
Copyright © 2014. All rights reserved.