Package 

Class ComponentRegistry

  • All Implemented Interfaces:

    
    public abstract class ComponentRegistry<T extends Component>
    
                        

    组件注册中心用于注册和检索组件。

    Component Registry can be used to register and index components.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Map<String, T> getComponents() 得到已注册的组件映射。Get registered component map.
      final Unit register(T component) 注册指定的组件。Register specific component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentRegistry

        ComponentRegistry()
    • Method Detail

      • getComponents

         final Map<String, T> getComponents()

        得到已注册的组件映射。

        Get registered component map.

      • register

         final Unit register(T component)

        注册指定的组件。

        Register specific component.