public class LocalizerAttributeHandler extends MethodAttributeHandler
m_AllowedClasses, m_Class, m_Method, m_Parameters
Constructor and Description |
---|
LocalizerAttributeHandler(String methodName)
Creates a new LocalizerAttributeHandler
for the given Localizer accessor method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(AttributeHandlerContext context)
Returns true if repos object is an instanceof DirectoryUser.
|
Object |
getValue(AttributeHandlerContext context)
Returns the value returned by the Localizer's accessor method registered
for use by this instance.
|
canUpdate, setValue
public LocalizerAttributeHandler(String methodName) throws NoSuchMethodException
methodName
- the name of the Localizer method to invoke.NoSuchMethodException
- if the given method does not exist.public boolean canHandle(AttributeHandlerContext context)
canHandle
in interface AttributeHandler
canHandle
in class MethodAttributeHandler
context
- The context when this handler is called.public Object getValue(AttributeHandlerContext context) throws FdkException
getValue
in interface AttributeHandler
getValue
in class MethodAttributeHandler
context
- the context for this AttributeHandler.FdkException
- if the operation fails.IfsException
- if the operation fails.Copyright © 2023. All rights reserved.