Author: mircea.markus
Date: 2008-05-14 11:35:28 -0400 (Wed, 14 May 2008)
New Revision: 5848
Modified:
core/trunk/src/main/java/org/jboss/cache/DataContainer.java
Log:
JBCACHE-1338 - added unit test for DataContainer
Modified: core/trunk/src/main/java/org/jboss/cache/DataContainer.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/DataContainer.java 2008-05-14 15:21:34 UTC
(rev 5847)
+++ core/trunk/src/main/java/org/jboss/cache/DataContainer.java 2008-05-14 15:35:28 UTC
(rev 5848)
@@ -50,15 +50,21 @@
@Inject
public void injectDependencies(Configuration configuration, NodeFactory nodeFactory)
{
- this.configuration = configuration;
- this.nodeFactory = nodeFactory;
+ setDependencies(configuration, nodeFactory);
// We need to create a root node even at this stage since certain components rely
on this being available before
// start() is called.
// TODO: Investigate which components rely on this being available before start(),
and why!
+ //TODO - remove setDependencies method at this point
createRootNode();
}
+ public void setDependencies(Configuration configuration, NodeFactory nodeFactory)
+ {
+ this.configuration = configuration;
+ this.nodeFactory = nodeFactory;
+ }
+
@Start(priority = 12)
public void createRootNode()
{
Show replies by date