Age | Commit message (Collapse) | Author |
|
from guice in a map, rather than from the persistence.xml file.
Note that this requires a modern version of hibernate since older versions
did not correctly process passed objects.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
|
|
Stopping the persistence service now causes a 'service not registered'
exception, hence catch that as it is not an error.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
|
|
JpaPersistService takes a parameter thus:
Properties persistenceProperties
However, this is used later to create an entity manager:
Persistence.createEntityManagerFactory(persistenceUnitName,
persistenceProperties);
The signature for that method is (String, Map) NOT (String, Properties).
If one is using Hibernate, you can pass the desired DataSource object in
using that Map with Environment.DATASOURCE storing the actual object.
Clearly you cannot do that if it's Properties (String->String map)
Changing this so that the persistenceProperties is a Map would solves this,
so you may now do (for example)
DataSource ds = ...;
Map p = new HashMap();
p.put( Environment.DATASOURCE, ds );
JpaPersistModule jpaPersistModule = new JpaPersistModule("myapp-db")
.properties(p);
Since all Properties objects *are* Map instances, this is a non-breaking
change.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
|
|
|
|
|
|
fails + unit test.
|
|
googlecode.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=70898906
|
|
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=69390543
|
|
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=63496902
|
|
to being discouraged due to weak semantics [1], it is incompatible with the standard javax.inject.Inject annotation [2].
Refactoring: https://code.google.com/p/error-prone/wiki/GuiceInjectOnFinalField
[1] https://code.google.com/p/google-guice/wiki/Injections#Field_Injection
[2] https://code.google.com/p/google-guice/wiki/JSR330
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=62760764
|
|
|
|
Also, tidy up a teensy bit of test infrastructure, make sure OSGI test is excluded since it's designed for ant-only, and make maven tests fork, as they run out of permgen consistently. Lastly, make the build system enforce a 1.6 minimum, not a 1.5 minimum.
|
|
|
|
|
|
changes), and remove executable bit from several files which do not need them.
|
|
------------------
Manually synced.
COMMIT=35272017
|
|
couple of new features (ProvisionListener SPI)
|
|
|
|
test.
Revision created by MOE tool push_codebase.
MOE_MIGRATION=3480
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1596 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
be rm'd, but fixing the test for now.
Revision created by MOE tool push_codebase.
MOE_MIGRATION=3475
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1591 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
into test.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1589 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
* Sort imports
* Convert tabs to spaces
* Fix the ant no_aop build
Revision created by MOE tool push_codebase.
MOE_MIGRATION=2532
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1572 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
Revision created by MOE tool push_codebase.
MOE_MIGRATION=2449
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1569 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
Revision created by MOE tool push_codebase.
MOE_MIGRATION=2448
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1568 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1564 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1563 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1562 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1561 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1560 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1559 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
still jarjar'd right now, which is causing a ~400k increase in guice-snapshot.jar. next step is to switch to ProGuard to remove the unnecessary code and cut it back down (even further?!). this will let people build from Guice source and depend directly on Guava code without having to worry about hiding internal/util.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1558 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
class, thanks to cgdecker for the patch and bug report!
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1493 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1466 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1457 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1445 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
package infos.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1379 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1367 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
tests
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1361 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
profiles to be turned off, and synchronize bundle headers in Ant and Maven builds
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1360 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1323 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
limit visibility on internal things that need to stay pseudo-open and really close the rest.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1322 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
also fix issue 563 -- assistedinject package-info referenced the wrong jar name.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1317 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1305 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
this check to use String.length() instead
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1301 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1250 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
other extensions.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1235 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
early-error checking to be ideal, but otherwise working as advertised. =)
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1228 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
finder API, it is now ready to ship for Guice 3!
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1227 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1224 d779f126-a31b-0410-b53b-1d3aecad763e
|
|
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1223 d779f126-a31b-0410-b53b-1d3aecad763e
|