Tung TRAN created JAMES-3796:
--------------------------------

             Summary: Guice support the custom task-json in extension
                 Key: JAMES-3796
                 URL: https://issues.apache.org/jira/browse/JAMES-3796
             Project: James Server
          Issue Type: Improvement
            Reporter: Tung TRAN


*Why*
- James is supporting the custom web admin 
(https://james.apache.org/howTo/custom-webadmin-routes.html), but It does not 
yet support the `task-json` in the extension. 

We got an error when trying to guice bind more `AdditionalInformationDTOModule` 
to Set in the extension module. 
Eg:

```java
    @Named(DTOModuleInjections.WEBADMIN_DTO)
    @ProvidesIntoSet
    public AdditionalInformationDTOModule<? extends 
TaskExecutionDetails.AdditionalInformation, ? extends AdditionalInformationDTO> 
webAdminFeedHamAdditionalInformation() {
        return FeedHamToRSpamDTaskAdditionalInformationDTO.SERIALIZATION_MODULE;
    }
```

-> It will be better if have a mechanism for support that 

*How* 
- Add one more configure for `webadmin-dto` guice in `webadmin.properties`. Eg: 
`extensions.dtos=org.apache.james.modules.server.WebAdminDTOExtensionModuleImpl`
 
- Add one more configure for `task-json` guice in `extensions.properties` 
Eg: 
`guice.extension.task=org.apache.james.server.task.json.TaskExtensionModuleImpl`
 

 

Mailing-list: 
https://www.mail-archive.com/server-dev@james.apache.org/msg72210.html



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to