WINDUP-102: Java Legacy rules migrated

Nice!

The XSLT should probably reside in the windup 2.0 codebase somewhere in the
rules-java module  :)
On Jul 17, 2014 4:57 AM, "Matej Briskar" <notifications@github.com> wrote:

> In
> rules/app/java-ee/src/main/java/org/jboss/windup/rules/apps/legacy/config/SonicESBConfig.java:
>
> > +                    "                ```\n" +
> > +                    "            ]]>", 1, Types.add(ClassCandidateType.TYPE)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQInitContext.getParameter", "Migrate to Spring property injection.", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQParameters.getParameter", "Migrate to Spring property injection.", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQParameters", "Migrate to Spring property injection.", 0, Types.add(ClassCandidateType.TYPE)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQParameterInfo", "Migrate to Spring property injection.", 0, Types.add(ClassCandidateType.TYPE)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQMessage$", "Migrate to org.apache.camel.Message", 0, Types.add(ClassCandidateType.TYPE)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQMessage.getHeaderValue", "Migrate to org.apache.camel.Message.getHeader(String name)", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQMessage.setHeaderValue", "Migrate to org.apache.camel.Message.setHeader(String name, Object value)", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQMessage.getHeaderNames", "Migrate to org.apache.camel.Message.getHeaders()", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQPart", "Migrate XQPart to an attachment on the org.apache.camel.Message", 0, Types.add(ClassCandidateType.TYPE)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQMessage.getPartCount", "Migrate to org.apache.camel.Message.getAttachments().size()", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQMessage.getPart\\(", "Migrate to org.apache.camel.Message.getAttachment(String id)", 0, Types.add(ClassCandidateType.METHOD)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQLog", "Migrate to SLF4J.", 1, Types.add(ClassCandidateType.TYPE)));
> > +        hints.add(new BlackListRegex(getID(), "com.sonicsw.xq.XQServiceException", "<![CDATA[\n" +
> > +                    "                Create a custom ServiceException class, extending Exception.  The documentation below explains exception handling in Camel.\n" +
>
> I made an XSLT :-) should I push it to the windup-legacy?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/windup/windup/pull/138/files#r15046869>.
>