java.lang.Object
dev.orne.config.impl.AbstractProxyHandler
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
ConfigSubset,ConfigSubtype
@API(status=INTERNAL,
since="1.0")
public abstract class AbstractProxyHandler
extends Object
implements InvocationHandler
Abstract
Config invocation handler with common
utility methods.- Since:
- 1.1
- Version:
- 1.0, 2026-04
- Author:
- (w) Iker Hernaez
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractProxyHandler(Config instance) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected @Nullable ObjecthandleObjectMethod(Method method, @Nullable Object[] args) HandlesObjectmethods invocations.inthashCode()protected booleanproxyEquals(@Nullable Object other) Checks equality with another proxy instance.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.reflect.InvocationHandler
invoke
-
Field Details
-
instance
The configuration instance.
-
-
Constructor Details
-
AbstractProxyHandler
Creates a new instance.- Parameters:
instance- The configuration instance to be proxied.
-
-
Method Details
-
handleObjectMethod
protected @Nullable Object handleObjectMethod(Method method, @Nullable Object[] args) throws ReflectiveOperationException HandlesObjectmethods invocations.- Parameters:
method- The invoked method.args- The method arguments.- Returns:
- The method invocation result.
- Throws:
ReflectiveOperationException- If an error occurs during method invocation.
-
proxyEquals
Checks equality with another proxy instance.- Parameters:
other- The other proxy instance.- Returns:
trueif both proxies are equal,falseotherwise.
-
hashCode
public int hashCode() -
equals
-