samples/preventcyclicdependencies/src-acyclic2/org/apidesign/cycles/crypt/DoEncodeImpl.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:53:48 +0200
changeset 87 618b79994cd4
child 88 97d71053c1a8
permissions -rw-r--r--
How to eliminate cyclic dependencies
jtulach@87
     1
// BEGIN: nocycles.encrypt2
jtulach@87
     2
package org.apidesign.cycles.crypt;
jtulach@87
     3
jtulach@87
     4
import org.apidesign.cycles.array.MutableArray;
jtulach@87
     5
jtulach@87
     6
public class DoEncodeImpl implements MutableArray.DoEncode {
jtulach@87
     7
    public void encode(byte[] arr) {
jtulach@87
     8
        Encryptor en = new Encryptor();
jtulach@87
     9
        en.encode(arr);
jtulach@87
    10
    }
jtulach@87
    11
}
jtulach@87
    12
// END: nocycles.encrypt2