public interface PRWrapperSourceBuilder
PRObjectWrapperGenerator
was originally provided as a mechanism
for clients to supply their own customer wrapper generator. This is
useful for those clients who need special code to accommodate their
object model. In practice however, the interface has proved to be
challenging to specialize as it requires several steps over and above
generating source code for the wrappers. To aid in the generation of
custom wrappers, this new interface was introduced and only requires
custom code for building the wrapper source code.
To register a custom wrapper builder, specify the full class name in
a Dynamic System Setting:
"Pega-IntSvcs general/alternateWrapperSourceBuilder"
any changes to this value will require a restart of the server.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildWrapperSource(PRObjectWrapperGenerator aWrapperGenerator,
java.lang.Class aSourceBeanType,
java.util.Set aDesiredTypes)
Build the source code for the given source bean.
|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
java.lang.String buildWrapperSource(PRObjectWrapperGenerator aWrapperGenerator, java.lang.Class aSourceBeanType, java.util.Set aDesiredTypes) throws java.beans.IntrospectionException
aWrapperGenerator
- provides methods for consistent naming of wrapper classesaSourceBeanType
- the bean to wrapaDesiredTypes
- list of types to referencejava.beans.IntrospectionException
Copyright © 2018 Pegasystems Inc. All Rights Reserved.