rzo1 commented on PR #1059:
URL: https://github.com/apache/tomee/pull/1059#issuecomment-1609117804
If I understand the idea correctly, that would mean, that we create
something like:
```bash
package org.apache.openejb.config.event;
import org.apache.openejb.jee.DataSource;
import org.apache.openejb.observer.Event;
@Event
public class DataSourceDefinitionUrlBuild {
private final DataSource ds;
public DataSourceDefinitionUrlBuild(DataSource ds) {
this.ds = ds;
}
//getters
}
```
and fire it as soon as we build a `org.apache.openejb.jee.DataSource` from
`@DataSourceDefinition` in `AnnotationDeployer#buildDataSourceDefinition(...)` ?
Someone could then do something like:
```bash
public void adjustDataSourceDefinition(@Observes final
DataSourceDefinitionUrlBuild event) {
//do something (for example set a custom jdbc url).
}
````
and register that class via `org.apache.openejb.extension` in `META-INF`,
right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]