|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.lang.Strategy
net.dpml.lang.AntlibStrategy
public class AntlibStrategy
Simple resource deployment strategy.
| Constructor Summary | |
|---|---|
AntlibStrategy(ClassLoader classloader,
String urn,
String path)
Creation of resource datatype. |
|
| Method Summary | ||
|---|---|---|
void |
encode(Buffer buffer,
String key)
Encode the resource strategy to XML. |
|
boolean |
equals(Object other)
Test if this instance is equal to the supplied instance. |
|
|
getContentForClass(Class<T> c)
Return the part content or null if the result type is unresolvable relative to the supplied classes argument. |
|
|
getInstance(Class<T> type)
Instantiate a value. |
|
String |
getName()
Return the strategy name. |
|
String |
getPath()
Get the resource path. |
|
int |
getPriority()
Return the strategy priority. |
|
String |
getURN()
Get the resource urn. |
|
int |
hashCode()
Get the hashcode for this instance. |
|
void |
initialize(ServiceRegistry registry)
Strategy initialization (not used). |
|
boolean |
isaCandidate(Class<?> type)
Return true if the strategy is a candidate for the supplied class. |
|
| Methods inherited from class net.dpml.lang.Strategy |
|---|
compareTo, getClassLoader, load, load, load |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntlibStrategy(ClassLoader classloader,
String urn,
String path)
throws IOException
classloader - the classloaderurn - the resource urnpath - the resource path
IOException - if an I/O error occurs| Method Detail |
|---|
public String getName()
getName in class Strategypublic int getPriority()
getPriority in class Strategy
public <T> T getContentForClass(Class<T> c)
throws IOException
getContentForClass in class Strategyc - the content class
IOException - if an IO error occurspublic String getURN()
public String getPath()
public boolean isaCandidate(Class<?> type)
isaCandidate in class Strategytype - a service type
public void initialize(ServiceRegistry registry)
initialize in class Strategyregistry - a service registrypublic <T> T getInstance(Class<T> type)
getInstance in class Strategytype - the return type
public void encode(Buffer buffer,
String key)
throws IOException
encode in class Strategybuffer - the output bufferkey - the key
IOException - if an I/O error occurspublic boolean equals(Object other)
equals in class Objectother - the supplied instance
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||