public class ComponentMetadataRepo extends Object
ComponentMetadata
Constructor and Description |
---|
ComponentMetadataRepo() |
Modifier and Type | Method and Description |
---|---|
static ComponentMetadata |
findComponentMetadata(Class<?> componentType)
Locates metadata for a given component type if registered.
|
static ComponentMetadata |
findComponentMetadata(String componentName)
Locates metadata for a given component type if registered.
|
static String |
findFactoryForComponent(Class<?> componentType)
Locates the fully qualified class name of a factory capable of constructing an instance of
|
static void |
initialize(Iterable<ModuleMetadataFileFinder> moduleMetadataFiles,
ClassLoader cl)
Initializes this repository.
|
static void |
readMetadata(URL metadataFile) |
public static void readMetadata(URL metadataFile) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static ComponentMetadata findComponentMetadata(Class<?> componentType)
ComponentMetadata
is returned effectively declaring
that the component has no dependencies or any lifecycle methods declared.componentType
- component type to look forpublic static ComponentMetadata findComponentMetadata(String componentName)
componentName
- name of component type to look forpublic static String findFactoryForComponent(Class<?> componentType)
componentType. Typically this is a factory annotated with
DefaultFactoryFor
.componentType
- component to createpublic static void initialize(Iterable<ModuleMetadataFileFinder> moduleMetadataFiles, ClassLoader cl)
ModuleMetadataFileFinder
instances
for all loaded Infinispan modules. Note that the core module is always loaded and need not be contained in this
iterable.moduleMetadataFiles
- file finders to iterate through and load into the repositoryCopyright © 2012 JBoss by Red Hat. All Rights Reserved.