Package org.apache.tapestry5.plastic
Class PlasticManager.PlasticManagerBuilder
java.lang.Object
org.apache.tapestry5.internal.plastic.Lockable
org.apache.tapestry5.plastic.PlasticManager.PlasticManagerBuilder
- Enclosing class:
- PlasticManager
A builder object for configuring the PlasticManager before instantiating it. Assumes a no-op
PlasticManagerDelegate
and an empty set of controlled packages, which is appropriate
when simply creating proxy objects.
The builder object is internally mutable and uses a fluid API (each method returns the same instance).-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates the PlasticManager with the current set of options.delegate
(PlasticManagerDelegate delegate) Sets thePlasticManagerDelegate
, which is ultimately responsible for transforming classes loaded from controlled packages.enable
(TransformationOption option) packages
(Collection<String> packageNames) Adds additional controlled packages, in which classes are loaded and transformed.
-
Method Details
-
delegate
Sets thePlasticManagerDelegate
, which is ultimately responsible for transforming classes loaded from controlled packages. The default delegate does nothing. -
packages
Adds additional controlled packages, in which classes are loaded and transformed. -
enable
-
create
Creates the PlasticManager with the current set of options.- Returns:
- the PlasticManager
-