Examples of IdentifiableFactory


Examples of com.sun.corba.se.spi.ior.IdentifiableFactory

    }

    protected IdentifiableFactory getFactory(int id)
    {
        Integer ident = new Integer( id ) ;
        IdentifiableFactory factory = (IdentifiableFactory)(map.get(
            ident ) ) ;
        return factory ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IdentifiableFactory

    public abstract Identifiable handleMissingFactory( int id, InputStream is ) ;

    public Identifiable create(int id, InputStream is)
    {
        IdentifiableFactory factory = getFactory( id ) ;

        if (factory != null)
            return factory.create( is ) ;
        else
            return handleMissingFactory( id, is ) ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IdentifiableFactory

    }

    protected IdentifiableFactory getFactory(int id)
    {
        Integer ident = new Integer( id ) ;
        IdentifiableFactory factory = (IdentifiableFactory)(map.get(
            ident ) ) ;
        return factory ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IdentifiableFactory

    public abstract Identifiable handleMissingFactory( int id, InputStream is ) ;

    public Identifiable create(int id, InputStream is)
    {
        IdentifiableFactory factory = getFactory( id ) ;

        if (factory != null)
            return factory.create( is ) ;
        else
            return handleMissingFactory( id, is ) ;
    }
View Full Code Here

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

Examples of org.apache.lenya.transaction.IdentifiableFactory

    /**
     * @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

Examples of org.apache.lenya.transaction.IdentifiableFactory

    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
Copyright © 2018 www.massapi.com. 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.