Description of Figure Example of Provider Subclass

Link to figure Example of Provider Subclass

This figure consists of a cylinder labeled Provider C and a box. Dotted lines are used to indicate that Provider C contains the contents of the box. The box contains the following headers and Java code:

  • provider.java

    public class fooJCA extends Provider {
        .
        .
        .
        put("MessageDigest.MD5", "com.foo.MD5");
        .
        .
        .
    {}
  • com.foo.MD5.java

    package com.foo;
    public class MD5 extends
        MessageDigestSpi {
        .
        .
        .
    }

Oracle and/or its affiliates Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部