public interface RecorderContext
Modifier and Type | Method and Description |
---|---|
Class<?> |
classProxy(String name)
Deprecated.
This construct is no longer needed since directly loading deployment/application classes at
processing time in build steps is now safe
|
<T> RuntimeValue<T> |
newInstance(String name)
Creates a RuntimeValue object that represents an object created via the default constructor.
|
<T> void |
registerNonDefaultConstructor(Constructor<T> constructor,
Function<T,List<Object>> parameters)
Registers a way to construct an object via a non-default constructor.
|
void |
registerObjectLoader(ObjectLoader loader)
Register an object loader.
|
<F,T> void |
registerSubstitution(Class<F> from,
Class<T> to,
Class<? extends ObjectSubstitution<F,T>> substitution)
Registers a substitution to allow objects that are not serialisable to bytecode to be substituted for an object
that is.
|
<T> void registerNonDefaultConstructor(Constructor<T> constructor, Function<T,List<Object>> parameters)
T
- The type of the objectconstructor
- The constructorparameters
- A function that maps the object to a list of constructor parameters<F,T> void registerSubstitution(Class<F> from, Class<T> to, Class<? extends ObjectSubstitution<F,T>> substitution)
from
- The class of the non serializable objectto
- The class to serialize tosubstitution
- The subclass of ObjectSubstitution
that performs the substitutionvoid registerObjectLoader(ObjectLoader loader)
loader
- the object loader (must not be null
)@Deprecated Class<?> classProxy(String name)
name
- The class name<T> RuntimeValue<T> newInstance(String name)
This object can be passed into recorders, but must not be used directly at deployment time
T
- The type of the classname
- The name of the classCopyright © 2021 JBoss by Red Hat. All rights reserved.