ObjectDB ObjectDB

registerAuthorizedStateManagerClass(smClass) - JDO JDOImplHelper's static method

Static Method
javax.jdo.spi.JDOImplHelper
void registerAuthorizedStateManagerClass(
  Class smClass
)

Register a class authorized to replaceStateManager. The caller of this method must be authorized for JDOPermission("setStateManager"). During replaceStateManager, a persistence-capable class will call the corresponding checkAuthorizedStateManager and the class of the instance of the parameter must have been registered.
Parameters:
smClass - a Class that is authorized for JDOPermission("setStateManager").
Throws:
SecurityException - if the caller is not authorized for JDOPermission("setStateManager").
Since:
JDO 1.0.1