Top Description Fields Constructors Methods
org.jboss.logmanager.configuration

pack-priv Class LazyConfigurationResource<T>

extends Object
implements ConfigurationResource<T>
Class Inheritance
All Implemented Interfaces
org.jboss.logmanager.configuration.ConfigurationResource, java.lang.AutoCloseable, java.util.function.Supplier
Imports
java.util.function.Supplier

A configuration resource
Author
James R. Perkins

Field Summary

Modifier and TypeField and Description
private volatile T
private final Supplier<T>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public T
get()

Implements java.util.function.Supplier.get.

Gets a result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
private volatile T instance
supplierback to summary
private final Supplier<T> supplier

Constructor Detail

LazyConfigurationResourceback to summary
pack-priv LazyConfigurationResource(final Supplier<T> supplier)

Method Detail

closeback to summary
public void close() throws Exception

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
Exceptions
Exception:
if this resource cannot be closed
getback to summary
public T get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Returns:T

a result

Annotations
@Override