You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to see API's such as the following, that just put the file in the right place with the right name on the classpath.
Archive.addPersistenceXML("path/to/persistence.xml")
Archive.addBeansXML("path/to/beans.xml"); // create empty instance if null passed, or maybe just have a variant without a parameter
(obviously corresponding API's using File and such are fine)
having this code, seems silly when the underlying logic could figure it out, once it knows what to return.
Activity