org.x4juli.global.spi
Interface ObjectStore

All Known Implementing Classes:
ObjectStoreImpl

public interface ObjectStore

Defines the interface for the global store for objects.

Logging API as a whole was originally done for Apache log4j. Juli is a port of main parts of that to complete the Java Logging APIs. All credits for initial idea, design, implementation, documentation belong to the log4j crew. This file was originally published by Ceki Gülcü, Mark Womack. Please use exclusively the appropriate mailing lists for questions, remarks and contribution.

Since:
0.5
Author:
Boris Unckel

Method Summary
 java.lang.Object getObject(java.lang.String key)
          A ObjectStore can also act as a store for various objects used by x4juli components.
 void putObject(java.lang.String key, java.lang.Object value)
          Store an object under 'key'.
 

Method Detail

getObject

public java.lang.Object getObject(java.lang.String key)
A ObjectStore can also act as a store for various objects used by x4juli components. If no object can be found, null is returned.

Returns:
The object stored under 'key'.
Since:
1.3

putObject

public void putObject(java.lang.String key,
                      java.lang.Object value)
Store an object under 'key'.

Parameters:
key -
value -


${license_html}