org.openorb.orb.core
Class LoggableLocalObject

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.openorb.orb.core.LoggableLocalObject
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.omg.CORBA.Object
Direct Known Subclasses:
OpenORBInitInfo, RMIInitializer

public class LoggableLocalObject
extends org.omg.CORBA.LocalObject
implements org.apache.avalon.framework.logger.LogEnabled

Utility class extending LocalObject with support for logging operations.


Constructor Summary
LoggableLocalObject()
           
 
Method Summary
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
          Supply a logging channel to the instance.
protected  org.apache.avalon.framework.logger.Logger getLogger()
          Return the logging channel used by the instance.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggableLocalObject

public LoggableLocalObject()
Method Detail

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Supply a logging channel to the instance.

Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled

getLogger

protected org.apache.avalon.framework.logger.Logger getLogger()
Return the logging channel used by the instance.

Returns:
the Logger
Throws:
java.lang.IllegalStateException - if the logging channel has not been set