This project has retired. For details please refer to its
Attic page.
org.apache.lenya.cms.repository
Class RepositoryItemFactoryWrapper
java.lang.Object
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.
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 |
RepositoryItemFactoryWrapper
public RepositoryItemFactoryWrapper(RepositoryItemFactory delegate,
Session session)
- Ctor.
- Parameters:
delegate
- The factory to wrap.session
- The session.
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.