Package | Description |
---|---|
com.vanillasource.jaywire.proxy |
Modifier and Type | Class and Description |
---|---|
class |
SupplierProxy<T>
Proxies a given supplier.
|
Modifier and Type | Method and Description |
---|---|
default <T extends AutoCloseable> |
ProxySupport.autoCloseProxy(Supplier<T> supplier)
Create a proxy which closes the resource after usage.
|
default Proxy<T> |
Proxy.onAfter(Consumer<T> after)
Execute a certain logic after the user supplied body is run.
|
default Proxy<T> |
Proxy.onAfter(Runnable after)
Execute a certain logic after the user supplied body is run,
that does not need the proxied object.
|
default Proxy<T> |
Proxy.onAround(BiConsumer<T,Runnable> around)
Execute additional logic around the call.
|
default Proxy<T> |
Proxy.onBefore(Consumer<T> before)
Execute a certain logic before the user supplied body is run.
|
default Proxy<T> |
Proxy.onBefore(Runnable before)
Execute a certain logic before the user supplied body is run,
that does not need the proxied object.
|
default <T> Proxy<T> |
ProxySupport.proxy(Supplier<T> supplier)
Make a proxy out of a supplier.
|
Copyright © 2016. All rights reserved.