org.apache.lenya.cms.repository
Class RepositoryItemFactoryWrapper

java.lang.Object
  extended by org.apache.lenya.cms.repository.RepositoryItemFactoryWrapper
All Implemented Interfaces:
IdentifiableFactory

public class RepositoryItemFactoryWrapper
extends java.lang.Object
implements IdentifiableFactory

Wraps a repository item factory to resemble an identifiable factory.


Constructor Summary
RepositoryItemFactoryWrapper(RepositoryItemFactory delegate, Session session)
          Ctor.
 
Method Summary
 java.lang.Object build(IdentityMap map, java.lang.String key)
          Builds an identifiable.
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryItemFactoryWrapper

public RepositoryItemFactoryWrapper(RepositoryItemFactory delegate,
                                    Session session)
Ctor.

Parameters:
delegate - The factory to wrap.
session - The session.
Method Detail

build

public java.lang.Object build(IdentityMap map,
                              java.lang.String key)
                       throws java.lang.Exception
Description copied from interface: IdentifiableFactory
Builds an identifiable.

Specified by:
build in interface IdentifiableFactory
Parameters:
map - The identity map.
key - The key.
Returns:
An identifiable object.
Throws:
java.lang.Exception - if an error occurs.

getType

public java.lang.String getType()
Specified by:
getType in interface IdentifiableFactory
Returns:
The type of the identifables to produce.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.