[jira] Created: (SPSITE-8) Resource Manager Toolkit

jira-yCVjj/[email protected]
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=SPSITE-8


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: SPSITE-8
    Summary: Resource Manager Toolkit
       Type: New Feature

     Status: Unassigned
   Priority: Minor

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: spice-site

   Assignee: 
   Reporter: Peter Donald

    Created: Sat, 5 Apr 2003 10:30 PM
    Updated: Sat, 5 Apr 2003 10:30 PM

Description:
We need a toolkit that allows libraries (aka .jar files) to export resources. The resources exported would be things like dtds, schemas, images, components, component profiles etc.

Each library would have a descriptor (META-INF/spice/resources.xml) which lists the resources it exports. A sample of this may look like

<resources version="1.0">

  <!-- declare some resource types -->
  <type shortname="dtd" uri="http://www.w3c.org/1995/dtd"/>
  <type shortname="png" uri="http://www.images-r-us.com/2000/png"/>
  <type shortname="component"
        uri="http://jakarta.apache.org/avalon/component/1.0"/>
  <type shortname="service"
        uri="http://jakarta.apache.org/avalon/service/1.0"/>

  <!-- declare some instances of above resource types -->
  <dtd key="assembly"
       resource="/org/apache/avalon/phoenix/tools/assembly.dtd"/>
  <png key="banner"
       resource="/org/apache/avalon/phoenix/tools/phoenix.png"/>
  <png key="built-with"
       resource="/org/apache/avalon/phoenix/tools/built-with-phoenix.png"/>
  <component key="kernel"
       resource="org.apache.avalon.phoenix.components.kernel.DefaultKernel"/>
  <service key="kernel"
       resource="org.apache.avalon.phoenix.interfaces.Kernel"/>

</resources>

Each resource entry declares a single resource. Each resource has a particular type (type defined by a URI). The way that a resource is extracted from library is not specified by this toolkit. 

This approach would also allow libraries to "extend" or "cascade" existing libraries. So you could replace the resource of type "component" in above config via something like (Assuming that the above descriptor was in a library named 'phoenix')

<resources extends="phoenix" version="1.0">
  <type shortname="component"
        uri="http://jakarta.apache.org/avalon/component/1.0"/>
  <component key="kernel"
       resource="org.apache.avalon.phoenix.components.kernel.DefaultKernel"/>

</resources>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.