org.objectledge.database.persistence
Class PicoPersistentFactory
java.lang.Object
org.objectledge.database.persistence.PicoPersistentFactory
- All Implemented Interfaces:
- PersistentFactory
public class PicoPersistentFactory
- extends Object
- implements PersistentFactory
An implementation of the PersistentFactory
interface that uses a PicoContainer and
CustomizingConstructorComponentAdapter.
- Version:
- $Id: PicoPersistentFactory.java,v 1.3 2005/07/07 08:30:03 zwierzem Exp $
- Author:
- Rafal Krzewski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
private org.picocontainer.PicoContainer container
type
private Class type
PicoPersistentFactory
public PicoPersistentFactory(org.picocontainer.PicoContainer container,
Class type)
throws IllegalArgumentException
- Crates an instantiator instance.
- Parameters:
container - the pico container to resolve dependencies from.type - an implmentation of Persistent interface.
- Throws:
IllegalArgumentException - if the clazz does not implement required interface.
newInstance
public Persistent newInstance()
throws Exception
-
- Specified by:
newInstance in interface PersistentFactory
- Throws:
Exception
Copyright © 2003-2006 objectledge.org. All Rights Reserved.