public class BeanResolver extends Object implements Resolver
Notice that this object is considered as a fallback in the resolution mechanism. It MUST NOT be declared in the META-INF/services/org.forgerock.openig.resolver.Resolver services file.
UNRESOLVED
Constructor and Description |
---|
BeanResolver()
Builds a new BeanResolver around an EL
BeanELResolver instance. |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object object,
Object element)
Attempts to resolve an element of an object.
|
Class<?> |
getKey()
Do not forget to override this method in sub-classes.
|
Object |
put(Object object,
Object element,
Object value)
Attempts to set the value of an element of an object.
|
public BeanResolver()
BeanELResolver
instance.public Class<?> getKey()
public Object get(Object object, Object element)
Resolver
object
argument
references an object for which a named or indexed element is being
requested. The element
argument specifies the element that is
being requested from the referenced object.
The element
argument can be either a String
or an
Integer
object. A string represents a named element of an
associative array; an integer represents the index of an ordered array.
If the resolver cannot resolve the requested element, then
Resolver.UNRESOLVED
should be returned. This allows other resovlers of
more generic classes or interfaces to potentially resolve the requested
element.
get
in interface Resolver
object
- the object in which to resolve the specified element.element
- the element to resolve within the specified object.Resolver.UNRESOLVED
if it
cannot be resolved.public Object put(Object object, Object element, Object value)
Resolver
object
argument references an object for which a named or indexed element is to
be set. The element
argument specifies which element value is to
be set. The value
argument specifies the value to be set.
The element
argument can be either a String
or an
Integer
object. A string represents a named element of an
associative array; an integer represents the index of an ordered array.
If the resolver cannot resolve the requested element or set its value,
then Resolver.UNRESOLVED
should be returned. This allows other resovlers
of more generic classes or interfaces to potentially resolve the
requested element.
put
in interface Resolver
object
- the object in which to resolve the specified element.element
- the element within the specified object whose value is to be
set.value
- the value to set the element to.null
if no previous
value, or Resolver.UNRESOLVED
if it cannot be resolved.Copyright © 2025 Open Identity Platform Community. All rights reserved.