Top Fields Constructors Methods
org.jboss.logmanager.configuration

pack-priv Class ConstantConfigurationResource<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.concurrent.atomic.AtomicReference

Author
James R. Perkins

Field Summary

Modifier and TypeField and Description
private AtomicReference<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 AtomicReference<T> instance

Constructor Detail

ConstantConfigurationResourceback to summary
pack-priv ConstantConfigurationResource(final T instance)

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