> >
> > I have two options:
> > 1) Somehow disable the Isis introspector from walking down the
> > Cayenne Persistor interface, or
> >
> 
> I'd imagine this ought to be possible by writing a FacetFactory similar
> to RemoveJavaLangObjectMethodsFacetFactory
> or RemoveJavaLangComparableMethodsFacetFactory.  This would remove any of
> the methods in the provided type (ie the cayenne interface).
> 

It was easy enough to install a FacetFactory that removed the 
offending class. In isis.properties:
isis.reflector.facets.include=isis.persistor.cayenne.installer.CayenneClassRemover

where:
public class CayenneClassRemover extends AbstractRemoveMethodsFacetFactory {
    public CayenneClassRemover() {
        super(CayenneDataObject.class);
    }
}

To solve a greater problem, I'd still like to know if CgLib (or others) can 
create new instantiable classes at runtime...

Regards,
Kevin

Reply via email to