[Apiman-user] ApiMan error writer implementation.

Eric Wittmann eric.wittmann at redhat.com
Mon Jan 23 10:14:47 EST 2017


It is absolutely possible to declare both implementations in a single
plugin.  They would simply be two classes stored in the same plugin WAR.

-Eric

On Mon, Jan 23, 2017 at 9:04 AM, Balu S <sbalu27 at gmail.com> wrote:

> Hello Eric,
> Thanks. Is it possible to declare both Error and Failure writer
> implementations in single plugin ? It looks each need its own plugin.json.
> But I find it unnecessary as they both similar purpose and creating
> multiple plugins only makes additional deployment step.
>
> Regards
> Balu
>
> On Mon, Jan 23, 2017 at 2:52 PM, Eric Wittmann <eric.wittmann at redhat.com>
> wrote:
>
>> It's definitely just a documentation mistake.  I'll get it corrected.
>>
>> Thanks!
>>
>> -Eric
>>
>>
>> On Mon, Jan 23, 2017 at 5:23 AM, Balu Sadhasivam <sbalu27 at gmail.com>
>> wrote:
>>
>>> Hello,
>>> I can see in the developer guide
>>> <http://www.apiman.io/latest/developer-guide.html> that to custom
>>> generate IPolicyErrorWriter, one can extend using below option
>>>
>>> 4.5.3.2.6. io.apiman.gateway.engine.IPolicyErrorWriter Example
>>> Configuration
>>>
>>> apiman-gateway.writers.policy-error=plugin:com.example.groupId:artifactId:1.0.Final/com.example.apiman.FooPolicyErrorWriterImpl
>>>
>>>
>>> But the code base defines the error writer to be loaded from below
>>> property.
>>>
>>> GatewayConfigPropertiesERROR_WRITER_CLASS =
>>> "apiman-gateway.writers.error";
>>>
>>> Is this case of mistake in documentation ? Does there exists more than
>>> one error writer API for policy and separately for other components ?
>>>
>>>
>>> regards
>>> Balu
>>>
>>> _______________________________________________
>>> Apiman-user mailing list
>>> Apiman-user at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/apiman-user
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20170123/2cf83cbf/attachment.html 


More information about the Apiman-user mailing list