United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7163312 Improve cache implementation code for cleanner access interface
JDK-7163312 : Improve cache implementation code for cleanner access interface

Details
Type:
Bug
Submit Date:
2012-04-21
Status:
Resolved
Updated Date:
2014-04-04
Project Name:
JDK
Resolved Date:
2012-05-22
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
Currently resource accesses are through either implementation classes DownLoadEngine and Cache and many other concrete class under com.sun.deploy.cache and com.sun.deploy.net packages.

These classes are public and expose a large number of public accesses methods causing confusion in maintenance and addition of new improvements.  We need to have better interfaces for model and controller objects, separated from implementation layers.

                                    

Comments
EVALUATION

We would have:
- Model: Resource, LocalResourceArtifact.  Also move LocalApplicationProperties, AssociationDesc DownloadDelegate out of implementation packages cache/net.
- Controller: abstract class ResourceProvider with implementation in cache package.
- Remove direct dependencies on DownloadEngine, Cache, CachedJarFile... from javaws and plugin components.  This could be done in multiple passes.
                                     
2012-04-21



Hardware and Software, Engineered to Work Together