Class Design.DefaultComponentFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Component createComponent​(java.lang.String fullyQualifiedClassName, DesignContext context)
      Creates a component based on the fully qualified name derived from the tag name in the design.
      protected java.lang.Class<? extends Component> resolveComponentClass​(java.lang.String qualifiedClassName, DesignContext context)
      Resolves a component class based on the fully qualified name of the class.
      • Methods inherited from class java.lang.Object

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

      • DefaultComponentFactory

        public DefaultComponentFactory()
    • Method Detail

      • createComponent

        public Component createComponent​(java.lang.String fullyQualifiedClassName,
                                         DesignContext context)
        Description copied from interface: Design.ComponentFactory
        Creates a component based on the fully qualified name derived from the tag name in the design.
        Specified by:
        createComponent in interface Design.ComponentFactory
        Parameters:
        fullyQualifiedClassName - the fully qualified name of the component to create
        context - the design context for which the component is created
        Returns:
        a newly created component
      • resolveComponentClass

        protected java.lang.Class<? extends Component> resolveComponentClass​(java.lang.String qualifiedClassName,
                                                                             DesignContext context)
        Resolves a component class based on the fully qualified name of the class.
        Parameters:
        qualifiedClassName - the fully qualified name of the resolved class
        context - the design context for which the class is resolved
        Returns:
        a component class object representing the provided class name