public abstract class GadgetImporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.gatein.common.logging.Logger |
log
.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GadgetImporter(String gadgetName,
String gadgetURI) |
| Modifier and Type | Method and Description |
|---|---|
void |
doImport(GadgetDefinition def) |
protected abstract byte[] |
getGadgetBytes(String gadgetURI) |
String |
getGadgetName() |
String |
getGadgetURI() |
protected abstract String |
getGadgetURL() |
protected abstract void |
process(String gadgetURI,
GadgetDefinition def) |
protected abstract void |
processMetadata(org.apache.shindig.gadgets.spec.ModulePrefs prefs,
GadgetDefinition def) |
String |
toString() |
public String getGadgetName()
public String getGadgetURI()
protected abstract byte[] getGadgetBytes(String gadgetURI) throws IOException
IOExceptionprotected abstract String getGadgetURL()
protected abstract void process(String gadgetURI, GadgetDefinition def) throws Exception
Exceptionprotected abstract void processMetadata(org.apache.shindig.gadgets.spec.ModulePrefs prefs,
GadgetDefinition def)
public void doImport(GadgetDefinition def) throws Exception
ExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.