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 Objectrealize(ParameterResolver resolver, ClassLoader loader, ParameterList parameterList)Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.booleanrealizes(Class<?> aClass, ParameterResolver resolver, ClassLoader loader)Determines if theParameterizedBuilderwill 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:ParameterizedBuilderRealizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.- Specified by:
realizein interfaceParameterizedBuilder<Object>- Parameters:
resolver- theParameterResolverfor resolving namedParametersloader- theClassLoaderfor loading any necessary classes and ifnulltheClassLoaderused 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.ReflectionSupportDetermines if theParameterizedBuilderwill realize an instance of the specified class (without requiring the builder to actually realize an object).This method is synonymous with the Java keyword
instanceofbut allows dynamic runtime type querying of the types of objects a builder may realize.- Specified by:
realizesin interfaceParameterizedBuilder.ReflectionSupport- Parameters:
aClass- the expected typeresolver- theParameterResolverto use for resolving necessaryParametersloader- theClassLoaderfor loading any necessary classes and ifnulltheClassLoaderused to load the builder will be used instead- Returns:
trueif theParameterizedBuilderwill realize an instance of the class,falseotherwise
-
-