|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
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 | |
---|---|
ComponentMetadata |
findComponentMetadata(Class<?> componentType)
Locates metadata for a given component type if registered. |
ComponentMetadata |
findComponentMetadata(String componentName)
Locates metadata for a given component type if registered. |
String |
findFactoryForComponent(Class<?> componentType)
Locates the fully qualified class name of a factory capable of constructing an instance of |
void |
initialize(Iterable<ModuleMetadataFileFinder> moduleMetadataFiles,
ClassLoader cl)
Initializes this repository. |
void |
injectFactoryForComponent(Class<?> componentType,
Class<?> factoryType)
Inject a factory for a given component type. |
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 void readMetadata(URL metadataFile) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public 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 ComponentMetadata findComponentMetadata(String componentName)
componentName
- name of component type to look for
public String findFactoryForComponent(Class<?> componentType)
componentType. Typically this is a factory annotated with
DefaultFactoryFor
.
componentType
- component to create
public 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 repositorypublic void injectFactoryForComponent(Class<?> componentType, Class<?> factoryType)
componentType
- Component type that the factory will producefactoryType
- Factory that produces the given type of components
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |