jdk/test/tools/jlink/customplugin/plugin/HelloPlugin.java
changeset 39129 4b2086305b68
parent 38320 e24c7029e8ba
child 39321 c60f34e8c057
equal deleted inserted replaced
39128:e991a1c8b41b 39129:4b2086305b68
    24 
    24 
    25 import java.io.File;
    25 import java.io.File;
    26 import java.io.IOException;
    26 import java.io.IOException;
    27 import java.io.UncheckedIOException;
    27 import java.io.UncheckedIOException;
    28 import java.util.Collections;
    28 import java.util.Collections;
    29 import java.util.HashSet;
       
    30 import java.util.Map;
    29 import java.util.Map;
    31 import java.util.Set;
       
    32 import jdk.tools.jlink.plugin.ModuleEntry;
    30 import jdk.tools.jlink.plugin.ModuleEntry;
    33 import jdk.tools.jlink.plugin.ModulePool;
    31 import jdk.tools.jlink.plugin.ModulePool;
    34 import jdk.tools.jlink.plugin.TransformerPlugin;
    32 import jdk.tools.jlink.plugin.TransformerPlugin;
    35 
    33 
    36 /**
    34 /**
    61             throw new UncheckedIOException(ex);
    59             throw new UncheckedIOException(ex);
    62         }
    60         }
    63     }
    61     }
    64 
    62 
    65     @Override
    63     @Override
    66     public Set<Category> getType() {
       
    67         Set<Category> set = new HashSet<>();
       
    68         set.add(Category.TRANSFORMER);
       
    69         return Collections.unmodifiableSet(set);
       
    70     }
       
    71 
       
    72     @Override
       
    73     public String getDescription() {
    64     public String getDescription() {
    74         return NAME + "-description";
    65         return NAME + "-description";
    75     }
    66     }
    76 }
    67 }