Interface ILogHandlerProvider<T extends ILogHandlerProvider>
-
- All Known Subinterfaces:
ILogger
- All Known Implementing Classes:
DefaultAsyncLogger
public interface ILogHandlerProvider<T extends ILogHandlerProvider>
An interface for a provider, which provides all log handlers for a log handlers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
addLogHandler(ILogHandler logHandler)
Adds a new ILogHandler instance, into the collection by the LogHandlerProvider implementationT
addLogHandlers(ILogHandler... logHandlers)
Adds an array of ILogHandler instances, into the collection by the LogHandlerProvider implementationT
addLogHandlers(java.lang.Iterable<ILogHandler> logHandlers)
Adds an Iterable of ILogHandler instances, into the collection by the LogHandlerProvider implementationjava.lang.Iterable<ILogHandler>
getLogHandlers()
Returns all registered ILogHandler instances as an Iterableboolean
hasLogHandler(ILogHandler logHandler)
Check that the ILogHandler exists on this providerboolean
hasLogHandlers(ILogHandler... logHandlers)
Check that the ILogHandler's exists on this providerT
removeLogHandler(ILogHandler logHandler)
Removes when contains the ILogHandler reference into the internal registryT
removeLogHandlers(ILogHandler... logHandlers)
Removes when contains the ILogHandler's reference into the internal registryT
removeLogHandlers(java.lang.Iterable<ILogHandler> logHandlers)
Removes when contains the ILogHandler's reference into the internal registry
-
-
-
Method Detail
-
addLogHandler
T addLogHandler(ILogHandler logHandler)
Adds a new ILogHandler instance, into the collection by the LogHandlerProvider implementation- Parameters:
logHandler
- the ILogHandler implementation, which should append- Returns:
- the current implementation of the ILogHandlerProvider
-
addLogHandlers
T addLogHandlers(ILogHandler... logHandlers)
Adds an array of ILogHandler instances, into the collection by the LogHandlerProvider implementation- Parameters:
logHandlers
- the ILogHandler's implementation, which should append- Returns:
- the current implementation of the ILogHandlerProvider
-
addLogHandlers
T addLogHandlers(java.lang.Iterable<ILogHandler> logHandlers)
Adds an Iterable of ILogHandler instances, into the collection by the LogHandlerProvider implementation- Parameters:
logHandlers
- the ILogHandler's implementation, which should append- Returns:
- the current implementation of the ILogHandlerProvider
-
removeLogHandler
T removeLogHandler(ILogHandler logHandler)
Removes when contains the ILogHandler reference into the internal registry- Parameters:
logHandler
- the logHandler, which should be removed- Returns:
- the current implementation of the ILogHandlerProvider
-
removeLogHandlers
T removeLogHandlers(ILogHandler... logHandlers)
Removes when contains the ILogHandler's reference into the internal registry- Parameters:
logHandlers
- the ILogHandler's, which should be removed- Returns:
- the current implementation of the ILogHandlerProvider
-
removeLogHandlers
T removeLogHandlers(java.lang.Iterable<ILogHandler> logHandlers)
Removes when contains the ILogHandler's reference into the internal registry- Parameters:
logHandlers
- the ILogHandler's, which should be removed- Returns:
- the current implementation of the ILogHandlerProvider
-
getLogHandlers
java.lang.Iterable<ILogHandler> getLogHandlers()
Returns all registered ILogHandler instances as an Iterable
-
hasLogHandler
boolean hasLogHandler(ILogHandler logHandler)
Check that the ILogHandler exists on this provider- Parameters:
logHandler
- the ILogHandler, that should test- Returns:
- true if the ILogHandler instance contain on this LogHandlerProvider object
-
hasLogHandlers
boolean hasLogHandlers(ILogHandler... logHandlers)
Check that the ILogHandler's exists on this provider- Parameters:
logHandlers
- the ILogHandler's, that should test- Returns:
- true if the ILogHandler's instances contain on this LogHandlerProvider object
-
-