db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Properties for PersistenceManagerFactory
Date Tue, 18 Dec 2007 21:01:13 GMT
Here's the writeup for allowing the name of listener classes and  
datastore cache to be specified as properties in the properties file,  
similar to the specification in jdoconfig.xml.

<proposed>
Properties whose key begins with the prefix  
"javax.jdo.listener.InstanceLifecycleListener." have special  
treatment. The part of the key following the prefix is used as the  
class name of a class that implements the static method getInstance()  
and returns an instance that implements  
javax.jdo.listener.InstanceLifecycleListener. The implementation  
constructs an instance of this class, and the value of the key is a  
comma-separated list of classes to which the instantiated listener is  
registered to listen.
Similarly, properties whose key begins with the prefix  
"javax.jdo.datastore.DataStoreCache." have special treatment. The  
part of the key following the prefix is used as the class name of a  
class that implements the static method getInstance() and returns an  
instance that implements javax.jdo.datastore.DataStoreCache. The  
implementation constructs an instance of this class and registers it  
as the cache for the PersistenceManagerFactory.
</proposed>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message