org.objectledge.database.persistence
Class PicoPersistentFactory

java.lang.Object
  extended by 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

Field Summary
private  org.picocontainer.PicoContainer container
           
private  Class type
           
 
Constructor Summary
PicoPersistentFactory(org.picocontainer.PicoContainer container, Class type)
          Crates an instantiator instance.
 
Method Summary
 Persistent newInstance()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

private org.picocontainer.PicoContainer container

type

private Class type
Constructor Detail

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.
Method Detail

newInstance

public Persistent newInstance()
                       throws Exception

Specified by:
newInstance in interface PersistentFactory
Throws:
Exception


Copyright © 2003-2006 objectledge.org. All Rights Reserved.