|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.factories.components.ComponentMetadataRepo
public class ComponentMetadataRepo
This is a repository of component metadata, which is populated when the Infinispan core jar is loaded up. Actual metadata is analyzed and persisted into the jar at build-time, taking it off the critical path.
ComponentMetadata
Constructor Summary | |
---|---|
ComponentMetadataRepo()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentMetadataRepo()
Method Detail |
---|
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 for
public static ComponentMetadata findComponentMetadata(String componentName)
componentName
- name of component type to look for
public static String findFactoryForComponent(Class<?> componentType)
componentType. Typically this is a factory annotated with
DefaultFactoryFor
.
componentType
- component to create
public 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 repository
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |