Package org.apache.lenya.transaction

Examples of org.apache.lenya.transaction.IdentifiableFactory


     * @return A document store.
     */
    protected DocumentStore getStore(DocumentIdentityMap map, Publication publication, String area) {
        String key = getKey(publication, area);
        DocumentStore store;
        IdentifiableFactory factory = map.getFactory(DocumentStore.IDENTIFIABLE_TYPE);
        if (factory == null) {
            factory = new DocumentStoreFactory(this.manager);
            ContainerUtil.enableLogging(factory, getLogger());
            map.setFactory(DocumentStore.IDENTIFIABLE_TYPE, factory);
        }
View Full Code Here


    /**
     * @see org.apache.lenya.transaction.IdentityMap#getFactory(java.lang.String)
     */
    public IdentifiableFactory getFactory(String type) {
        IdentifiableFactory factory = super.getFactory(type);
        if (factory == null && type.equals(Document.TRANSACTIONABLE_TYPE)) {
            factory = new DocumentFactory(this.manager);
            ContainerUtil.enableLogging(factory, getLogger());
            setFactory(type, factory);
        }
View Full Code Here

    public SiteTree getTree(DocumentIdentityMap map, Publication publication, String area)
            throws SiteException {

        String key = getKey(publication, area);
        DefaultSiteTree sitetree;
        IdentifiableFactory factory = map.getFactory(SiteTree.IDENTIFIABLE_TYPE);
        if (factory == null) {
            factory = new SiteTreeFactory(this.manager);
            ContainerUtil.enableLogging(factory, getLogger());
            map.setFactory(SiteTree.IDENTIFIABLE_TYPE, factory);
        }
View Full Code Here

TOP

Related Classes of org.apache.lenya.transaction.IdentifiableFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.