public class PojoInstantiator extends Object implements Instantiator, Serializable
Defines a POJO-based instantiator for use from the tuplizers.
Constructor and Description |
---|
PojoInstantiator(Class componentClass,
ReflectionOptimizer.InstantiationOptimizer optimizer) |
PojoInstantiator(Class mappedClass,
ReflectionOptimizer.InstantiationOptimizer optimizer,
boolean embeddedIdentifier) |
PojoInstantiator(Component component,
ReflectionOptimizer.InstantiationOptimizer optimizer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
applyInterception(Object entity) |
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.
|
public PojoInstantiator(Class mappedClass, ReflectionOptimizer.InstantiationOptimizer optimizer, boolean embeddedIdentifier)
public PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer)
public PojoInstantiator(Class componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)
public Object instantiate()
Instantiator
Perform the requested instantiation.
instantiate
in interface Instantiator
public Object instantiate(Serializable id)
Instantiator
Perform the requested entity instantiation. <p/> This form is never called for component instantiation, only entity instantiation.
instantiate
in interface Instantiator
id
- The id of the entity to be instantiated.public boolean isInstance(Object object)
Instantiator
Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
isInstance
in interface Instantiator
object
- The object to be checked.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.