// persistence unit (unless they exclude them).
private Set<EntityListenerMetadata> m_defaultListeners;
public void createRestInterfaces(ClassLoader loader) {
if (DynamicClassLoader.class.isAssignableFrom(loader.getClass())) {
DynamicClassLoader dcl = (DynamicClassLoader) loader;
for (EntityAccessor accessor : getEntityAccessors()) {
String className = accessor.getParentClassName();
if (className == null || getEntityAccessor(className) == null) {
RestAdapterClassWriter restAdapter = new RestAdapterClassWriter(
accessor.getJavaClassName());
dcl.addClass(restAdapter.getClassName(), restAdapter);
}
}
}
}