Package com.oracle.coherence.cdi.server
Class BeanBuilder
- java.lang.Object
-
- com.oracle.coherence.cdi.server.BeanBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<Object>
,ParameterizedBuilder.ReflectionSupport
public class BeanBuilder extends Object implements ParameterizedBuilder<Object>, ParameterizedBuilder.ReflectionSupport
Element processor for<cdi:bean>
XML element.- Since:
- 20.06
- Author:
- Aleks Seovic 2019.10.02
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
realize(ParameterResolver resolver, ClassLoader loader, ParameterList parameterList)
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.boolean
realizes(Class<?> aClass, ParameterResolver resolver, ClassLoader loader)
Determines if theParameterizedBuilder
will realize an instance of the specified class (without requiring the builder to actually realize an object).
-
-
-
Method Detail
-
realize
public Object realize(ParameterResolver resolver, ClassLoader loader, ParameterList parameterList)
Description copied from interface:ParameterizedBuilder
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.- Specified by:
realize
in interfaceParameterizedBuilder<Object>
- Parameters:
resolver
- theParameterResolver
for resolving namedParameter
sloader
- theClassLoader
for loading any necessary classes and ifnull
theClassLoader
used to load the builder will be used insteadparameterList
- an optionalParameterList
(may benull
) to be used for realizing the instance, eg: used as constructor parameters- Returns:
- an instance of T
-
realizes
public boolean realizes(Class<?> aClass, ParameterResolver resolver, ClassLoader loader)
Description copied from interface:ParameterizedBuilder.ReflectionSupport
Determines if theParameterizedBuilder
will realize an instance of the specified class (without requiring the builder to actually realize an object).This method is synonymous with the Java keyword
instanceof
but allows dynamic runtime type querying of the types of objects a builder may realize.- Specified by:
realizes
in interfaceParameterizedBuilder.ReflectionSupport
- Parameters:
aClass
- the expected typeresolver
- theParameterResolver
to use for resolving necessaryParameter
sloader
- theClassLoader
for loading any necessary classes and ifnull
theClassLoader
used to load the builder will be used instead- Returns:
true
if theParameterizedBuilder
will realize an instance of the class,false
otherwise
-
-