public void execute( Object object, ComponentManager componentManager, ClassRealm lookupRealm )
throws PhaseExecutionException
{
if ( object instanceof LogEnabled )
{
LogEnabled logEnabled = (LogEnabled) object;
LoggerManager loggerManager = componentManager.getContainer().getLoggerManager();
ComponentDescriptor<?> descriptor = componentManager.getComponentDescriptor();
Logger logger = loggerManager.getLoggerForComponent( descriptor.getRole(), descriptor.getRoleHint() );
logEnabled.enableLogging( logger );
}
}