[ http://issues.apache.org/jira/browse/TAPESTRY-1112?page=all ]
Jesse Kuhnert resolved TAPESTRY-1112.
-------------------------------------
Fix Version/s: 5.0
Resolution: Fixed
> Intoduce factory methods into replaceable tapestry serives for simpler
> functionality overrides
> ----------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1112
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1112
> Project: Tapestry
> Issue Type: Improvement
> Components: Core
> Reporter: Alexander Gavrilov
> Priority: Minor
> Fix For: 5.0
>
>
> Currently whe can ovveride tapesrty serives behavior via injecting
> dependencies. But sometimes services constructs another components directly
> in code and is not possible to override this dependency w/o overriding full
> selvice methods (at best) or full service class at all (at the worst). This
> service construction sould be extracted to separate overridable methods. For
> example, method getComponentConstructor of class
> org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl construct
> EnhancementOperationImpl wia constructor and for using different
> EnhancementOperation implementation there is required full class overriding.
> The best approach is to put EnhancementOperation implementation instantiation
> in another method like
> protected EnhancementOperationImpl
> createEnhancementOperationImpl(IComponentSpecification specification, Class
> baseClass) {
> return new EnhancementOperationImpl(_classResolver, specification,
> baseClass, _classFactory, _log);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]