ClassDeactivatorStorage.setClassDeactivator(classDeactivator);
}
private static ClassDeactivator getClassDeactivator()
{
ClassDeactivator classDeactivator = CodiUtils
.lookupFromEnvironment(CLASS_DEACTIVATOR_PROPERTY_NAME,
CLASS_DEACTIVATOR_JNDI_NAME,
ClassDeactivator.class);
// use default deactivator
if (classDeactivator == null)
{
classDeactivator = createClassDeactivatorPlaceholder();
}
else
{
logger.info("used class deactivator: " + classDeactivator.getClass().getName());
// display deactivated classes here once
// NOTE that isClassActivated() will be called many times for the same class
for (Class<?> deactivatedClass : classDeactivator.getDeactivatedClasses())
{
logger.info("deactivate: " + deactivatedClass);
}
}