|
Friki example source code file (RemoteWikiLink.java)
The Friki RemoteWikiLink.java source codepackage wiki; import org.stringtree.factory.AbstractStringFetcher; import org.stringtree.factory.Fetcher; import org.stringtree.factory.StringFetcher; import org.stringtree.juicer.Initialisable; public class RemoteWikiLink extends AbstractStringFetcher implements Initialisable { private StringFetcher remoteNames; public RemoteWikiLink(StringFetcher remoteNames) { this.remoteNames = remoteNames; } public RemoteWikiLink() { this(null); } public Object getObject(String key) { Object ret = (remoteNames == null) ? null : remoteNames.getObject(key); if (ret != null) { ret = "\nremote{" + ret + "}"; } else { ret = "\nunknown{" + ret + "}"; } return ret; } public void init(Fetcher context) { if (context != null) { remoteNames = (StringFetcher)context.getObject("wiki.remoteNames"); } } } Other Friki examples (source code examples)Here is a short list of links related to this Friki RemoteWikiLink.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.