Nitido Inc.

com.nitido.nimx.services.log.log4j
Class LogServiceImpl

java.lang.Object
  extended by com.nitido.nim.NiMKernelService
      extended by com.nitido.nim.LogService
          extended by com.nitido.nimx.services.log.log4j.LogServiceImpl
All Implemented Interfaces:
NiMConstants

public class LogServiceImpl
extends LogService

This class provides an implementation of the LogService based on log4j.


Field Summary
static java.lang.String CONF_KEY_PREFIX
          The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name.
static int LEN_CONF_KEY_PREFIX
          The length of the string CONF_KEY_PREFIX.
static java.lang.String PREFIX_LOG4J
          Just the string "log4j.".
 
Fields inherited from interface com.nitido.nim.NiMConstants
ACTION_CREATE_NUGGET, ACTION_CREATE_NUGGET_BY_NAME, ACTION_CRED_SPACE_ADD, ACTION_CRED_SPACE_GET_KEYS, ACTION_CRED_SPACE_GET_KEYS_START_WITH, ACTION_CRED_SPACE_GET_VALUE, ACTION_CRED_SPACE_GET_VALUES, ACTION_CRED_SPACE_MODIFY, ACTION_CRED_SPACE_REMOVE_VALUE, ACTION_CRED_SPACE_REMOVE_VALUES, ACTION_CRED_SPACE_REPLACE, ACTION_DEPROVISION_ENTITY, ACTION_ENTITY_CHANGE_CRED, ACTION_LOG_EVENT, ACTION_PROVISION_ENTITY, ACTION_USER_SPACE_ADD, ACTION_USER_SPACE_GET_KEYS, ACTION_USER_SPACE_GET_KEYS_START_WITH, ACTION_USER_SPACE_GET_VALUE, ACTION_USER_SPACE_GET_VALUES, ACTION_USER_SPACE_MODIFY, ACTION_USER_SPACE_REMOVE_VALUE, ACTION_USER_SPACE_REMOVE_VALUES, ACTION_USER_SPACE_REPLACE, CONF_PREFIX_SECURITY_ACCESS, CONF_PREFIX_SECURITY_ALLOW, CONF_PREFIX_SECURITY_ASSIGN, CONF_PREFIX_SECURITY_RESOURCE, PARAM_CHANGE_CRED, PARAM_DEPROVISION_CREDENTIAL, PARAM_EVENT_NAME, PARAM_MODIFIER_CONTAINER, PARAM_NUGGET_CREATE_CRED, PARAM_NUGGET_NAME, PARAM_NUGGET_SETTINGS, PARAM_NUGGET_TYPE, PARAM_PROVISION_DESCRIPTOR, PARAM_SPACE_KEY, PARAM_SPACE_KEYS_START_WITH, PARAM_SPACE_VALUE, PREFIX_ACCESS_CLASS_IN_PACKAGE
 
Constructor Summary
LogServiceImpl(NiMKernelServiceVisa visa)
          This class constructor is used by NiMKernel to instantiate a new LogService.
 
Method Summary
 Logger getLogger(java.lang.Class clazz)
          This method returns a reference to the NiM Logger object for the given class.
 Logger getLogger(java.lang.String name)
          This method returns a reference to the NiM Logger object for the given class name.
protected  void init(NiMKernel kernel, ConfigurationService confService)
          This method is used by the NiMKernel to initialize the LogService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_KEY_PREFIX

public static final java.lang.String CONF_KEY_PREFIX
The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name.

See Also:
Constant Field Values

LEN_CONF_KEY_PREFIX

public static final int LEN_CONF_KEY_PREFIX
The length of the string CONF_KEY_PREFIX.


PREFIX_LOG4J

public static final java.lang.String PREFIX_LOG4J
Just the string "log4j.".

See Also:
Constant Field Values
Constructor Detail

LogServiceImpl

public LogServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new LogService.

Parameters:
visa - Reference to the NiMKernelServiceVisa object required to instantiate the service. This parameter is required to ensure that only the NiMkernel can instantiate a reference to this service.
Method Detail

init

protected void init(NiMKernel kernel,
                    ConfigurationService confService)
             throws InitializationFailedException,
                    NiMException
This method is used by the NiMKernel to initialize the LogService.

Specified by:
init in class LogService
Parameters:
kernel - Reference to the kernel that instantiated this service.
confService - Reference to the ConfigurationService
Throws:
InitializationFailedException - If unable to initialize the service. This exception is never thrown by this service implementation.
NiMException - If unable to establish a connection with the underlying log service. This exception is never thrown by this service implementation.

getLogger

public Logger getLogger(java.lang.String name)
Description copied from class: LogService
This method returns a reference to the NiM Logger object for the given class name. The logger object can be used by application developers to output log messages for tracing and debugging purposes.

Specified by:
getLogger in class LogService
Parameters:
name - The class name of the object requesting the logger.
Returns:
The reference to the Logger object for the given class name.
See Also:
Logger

getLogger

public Logger getLogger(java.lang.Class clazz)
Description copied from class: LogService
This method returns a reference to the NiM Logger object for the given class. The logger object can be used by application developers to output log messages for tracing and debugging purposes.

Specified by:
getLogger in class LogService
Parameters:
clazz - The class reference of the object requesting the logger.
Returns:
The reference to Logger object for the given class.

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.