org.infinispan.factories.components
Class ComponentMetadata
java.lang.Object
org.infinispan.factories.components.ComponentMetadata
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ManageableComponentMetadata
public class ComponentMetadata
- extends Object
- implements Serializable
This class contains all of the metadata and implications expressed via the Scope
, SurvivesRestarts
,
DefaultFactoryFor
, ComponentName
, Inject
, Start
and Stop
annotations. Instead
of scanning for these annotations and working out dependency chains at runtime "on-demand", since Infinispan 5.1, this
process now happens offline, at build-time.
When compiling Infinispan, components and their dependency chains are inspected and the information expressed by the
annotations above are denormalized and a series of ComponentMetadata
objects are created and persisted in the
Infinispan jar.
This metadata is then read in by the ComponentMetadataRepo
at runtime, and used by the ComponentRegistry
and other factory-like classes to bootstrap an Infinispan node.
Also see ManageableComponentMetadata
for components that also expose JMX information.
- Since:
- 5.1
- Author:
- Manik Surtani
- See Also:
ManageableComponentMetadata
,
ComponentMetadataRepo
,
Serialized Form
EMPTY_INJECT_METHODS
public static final ComponentMetadata.InjectMetadata[] EMPTY_INJECT_METHODS
EMPTY_PRIORITIZED_METHODS
public static final ComponentMetadata.PrioritizedMethodMetadata[] EMPTY_PRIORITIZED_METHODS
ComponentMetadata
public ComponentMetadata(Class<?> component,
List<Method> injectMethods,
List<Method> startMethods,
List<Method> stopMethods,
boolean global,
boolean survivesRestarts)
getName
public String getName()
getDependencies
public Map<String,String> getDependencies()
getInjectMethods
public ComponentMetadata.InjectMetadata[] getInjectMethods()
getStartMethods
public ComponentMetadata.PrioritizedMethodMetadata[] getStartMethods()
getStopMethods
public ComponentMetadata.PrioritizedMethodMetadata[] getStopMethods()
isGlobalScope
public boolean isGlobalScope()
isSurvivesRestarts
public boolean isSurvivesRestarts()
isManageable
public boolean isManageable()
getClazz
public Class<?> getClazz()
toManageableComponentMetadata
public ManageableComponentMetadata toManageableComponentMetadata()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.