|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.appender.AbstractManager
public abstract class AbstractManager
Abstract base class used to register managers.
| Field Summary | |
|---|---|
protected int |
count
Number of Appenders using this manager. |
protected static Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance. |
| Constructor Summary | |
|---|---|
protected |
AbstractManager(String name)
|
| Method Summary | ||
|---|---|---|
protected int |
getCount()
|
|
static
|
getManager(String name,
ManagerFactory<M,T> factory,
T data)
Retrieves a Manager if it has been previously created or creates a new Manager. |
|
String |
getName()
Returns the name of the Manager. |
|
static boolean |
hasManager(String name)
Determines if a Manager with the specified name exists. |
|
void |
release()
Called to signify that this Manager is no longer required by an Appender. |
|
protected void |
releaseSub()
May be overriden by Managers to perform processing while the Manager is being released and the lock is held. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
protected int count
| Constructor Detail |
|---|
protected AbstractManager(String name)
| Method Detail |
|---|
public static <M extends AbstractManager,T> M getManager(String name,
ManagerFactory<M,T> factory,
T data)
M - The Type of the Manager to be created.name - The name of the Manager to retrieve.factory - The Factory to use to create the Manager.data - An Object that should be passed to the factory when creating the Manager.
public static boolean hasManager(String name)
name - The name of the Manager.
protected void releaseSub()
protected int getCount()
public void release()
public String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||