Class ComponentMetadata

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ManageableComponentMetadata

    @Deprecated
    public class ComponentMetadata
    extends java.lang.Object
    implements java.io.Serializable
    Deprecated.
    Since 10.0, no longer used and will be removed.
    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
    • Constructor Detail

      • ComponentMetadata

        public ComponentMetadata​(java.lang.Class<?> component,
                                 java.util.List<java.lang.reflect.Field> injectFields,
                                 java.util.List<java.lang.reflect.Method> injectMethods,
                                 java.util.List<java.lang.reflect.Method> startMethods,
                                 java.util.List<java.lang.reflect.Method> postStartMethods,
                                 java.util.List<java.lang.reflect.Method> stopMethods,
                                 boolean global,
                                 boolean survivesRestarts)
        Deprecated.
      • ComponentMetadata

        public ComponentMetadata​(java.lang.Class<?> component,
                                 java.util.List<java.lang.reflect.Field> injectFields,
                                 java.util.List<java.lang.reflect.Method> injectMethods,
                                 java.util.List<java.lang.reflect.Method> startMethods,
                                 java.util.List<java.lang.reflect.Method> postStartMethods,
                                 java.util.List<java.lang.reflect.Method> stopMethods,
                                 Scopes scope,
                                 boolean survivesRestarts)
        Deprecated.
    • Method Detail

      • extractDependencyType

        public java.lang.String extractDependencyType​(java.lang.reflect.Type erasedType,
                                                      java.lang.reflect.Type genericType,
                                                      boolean lazy)
        Deprecated.
      • getName

        public java.lang.String getName()
        Deprecated.
      • getDependencies

        public java.util.Map<java.lang.String,​java.lang.String> getDependencies()
        Deprecated.
      • isGlobalScope

        public boolean isGlobalScope()
        Deprecated.
      • isSurvivesRestarts

        public boolean isSurvivesRestarts()
        Deprecated.
      • isManageable

        public boolean isManageable()
        Deprecated.
      • getClazz

        public java.lang.Class<?> getClazz()
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • getScope

        public Scopes getScope()
        Deprecated.