public interface Instantiator extends Serializable
Contract for implementors responsible for instantiating entity/component instances.
Modifier and Type | Method and Description |
---|---|
Object |
instantiate()
Perform the requested instantiation.
|
Object |
instantiate(Serializable id)
Perform the requested entity instantiation.
|
boolean |
isInstance(Object object)
Performs check to see if the given object is an instance of the entity
or component which this Instantiator instantiates.
|
Object instantiate(Serializable id)
Perform the requested entity instantiation. <p/> This form is never called for component instantiation, only entity instantiation.
id
- The id of the entity to be instantiated.Object instantiate()
Perform the requested instantiation.
boolean isInstance(Object object)
Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
object
- The object to be checked.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.