Package org.jboss.logmanager.config
Interface ObjectConfigurable<T>
-
- All Known Subinterfaces:
ErrorManagerConfiguration,FilterConfiguration,FormatterConfiguration,HandlerConfiguration,PojoConfiguration
public interface ObjectConfigurable<T>A configurable object with a specific class name.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetClassName()Get the class name for this object's configuration.default TgetInstance()Returns the instance associated with this configuration ornullif no instance has yet been created.java.lang.StringgetModuleName()Get the module name for this object's configuration, if any.
-
-
-
Method Detail
-
getModuleName
java.lang.String getModuleName()
Get the module name for this object's configuration, if any. If JBoss Modules is not present on the class path, onlynullvalues are accepted.- Returns:
- the module name, or
nullif none is configured
-
getClassName
java.lang.String getClassName()
Get the class name for this object's configuration.- Returns:
- the class name
-
getInstance
default T getInstance()
Returns the instance associated with this configuration ornullif no instance has yet been created.Any changes to the instance will not be recognized by the configuration API.
- Returns:
- the instance associated with this configuration or
null
-
-