Changeset 30104

Show
Ignore:
Timestamp:
02/12/08 21:43:21 (9 months ago)
Author:
bstefanescu
Message:

merged -c 28308 from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/branches/1.4/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/adapter/DocumentAdapterDescriptor.java

    r21675 r30104  
    6060    @XNode("@factory") 
    6161    void setFactory(Class factoryClass) throws Throwable { 
     62        if (!DocumentAdapterFactory.class.isAssignableFrom(factoryClass)) { 
     63            throw new ClassCastException("Declared factory class " 
     64                    + factoryClass.getName() + " must implement " 
     65                    + DocumentAdapterFactory.class + " interface."); 
     66        } 
    6267        try { 
    6368            factory = (DocumentAdapterFactory) factoryClass.newInstance();