com.pega.pegarules.pub.generator
Interface PRWrapperSourceBuilder
public interface PRWrapperSourceBuilder
Standard interface for a wrapper source code builder.
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.
- Version:
- $Revision: 2 $ $Date: 2009-06-15 17:25:41 -0400 (Mon, 15 Jun 2009) $
- Author:
- burnd
COPYRIGHT
static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
VERSION
static final java.lang.String VERSION
buildWrapperSource
java.lang.String buildWrapperSource(PRObjectWrapperGenerator aWrapperGenerator,
java.lang.Class aSourceBeanType,
java.util.Set aDesiredTypes)
throws java.beans.IntrospectionException
- Build the source code for the given source bean.
- Parameters:
aWrapperGenerator
- provides methods for consistent naming of wrapper classesaSourceBeanType
- the bean to wrapaDesiredTypes
- list of types to reference
- Returns:
- wrapper source code, as a string
- Throws:
java.beans.IntrospectionException
Copyright © 2012 Pegasystems Inc. All Rights Reserved.