[ 
https://issues.apache.org/jira/browse/TAP5-975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship updated TAP5-975:
--------------------------------------

    Description: 
I was just updating the documentation on creating a component library, and 
there's now seven steps.

It seems to me that some thing:

public void contributeComponentLibrary(Configuration<ComponentLibraryDef> 
configuration)
{
  configuration.add(new ComponentLibraryDef("happy", "org.example.happylib", 
"1.0"));
}

... could cover it all (with perhaps alternate constructors for more precise 
control over whitelisted assets). 

This would be accomplished by having contribute methods in a module inject the 
new service, and pass configurations to it to be added to.

  was:
I was just updating the documentation on creating a component library, and 
there's now seven steps.

It seems to me that some thing:

public void contributeComponentLibrary(Configuration<ComponentLibraryDef> 
configuration)
{
  configuration.add(new ComponentLibraryDef("happy", "org.example.happylib", 
"1.0"));
}

... could cover it all (with perhaps alternate constructors for more precise 
control over whitelisted assets).

        Summary: The number of steps required to configure a Tapestry Component 
library are too numerous; a single contribution to a new service should 
configure classpath, prefix, etc.  (was: The number of steps required to 
configure a Tapestry Component library are too numerous; a single contribution 
so a new service should configure classpath, prefix, etc.)

> The number of steps required to configure a Tapestry Component library are 
> too numerous; a single contribution to a new service should configure 
> classpath, prefix, etc.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-975
>                 URL: https://issues.apache.org/jira/browse/TAP5-975
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>
> I was just updating the documentation on creating a component library, and 
> there's now seven steps.
> It seems to me that some thing:
> public void contributeComponentLibrary(Configuration<ComponentLibraryDef> 
> configuration)
> {
>   configuration.add(new ComponentLibraryDef("happy", "org.example.happylib", 
> "1.0"));
> }
> ... could cover it all (with perhaps alternate constructors for more precise 
> control over whitelisted assets). 
> This would be accomplished by having contribute methods in a module inject 
> the new service, and pass configurations to it to be added to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to