readResolve
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| protected Object | Returns: logger with same name as returned by LoggerFactoryReplace this instance with a homonymous (same name) logger returned by LoggerFactory. |
| name | back to summary |
|---|---|
| protected String name | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NamedLoggerBase | back to summary |
|---|---|
| pack-priv NamedLoggerBase() | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Return the name of this | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() throws ObjectStreamException Replace this instance with a homonymous (same name) logger returned by LoggerFactory. Note that this method is only called during deserialization. This approach will work well if the desired ILoggerFactory is the one referenced by LoggerFactory. However, if the user manages its logger hierarchy through a different (non-static) mechanism, e.g. dependency injection, then this approach would be mostly counterproductive.
| |