org.apache.tapestry5.internal.services

## Interface Instantiator

-     public interface Instantiator

  An object that can instantiate a component. This is now largely a wrapper around `ClassInstantiator`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ComponentModel` | `getModel()` Returns the model that defines the behavior of the component.
    `Component` | `newInstance(InternalComponentResources resources)` Instantiates and returns a new instance of the desired class.

- - ### Method Detail

    - #### newInstance

          Component newInstance(InternalComponentResources resources)

      Instantiates and returns a new instance of the desired class. Component classes are always modified so that they implement `Component` (and often, other interfaces as well). The resources are made available in the `InstanceContext` as both `ComponentResources` and `InternalComponentResources`.

    - #### getModel

          ComponentModel getModel()

      Returns the model that defines the behavior of the component.

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.