|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.fastagi.AbstractMappingStrategy
public abstract class AbstractMappingStrategy
Abstract base class for common mapping strategies.
If you implement your own mapping strategy you can derive from this class.
Field Summary | |
---|---|
protected Log |
logger
Reference to Asterisk-Java's logging subsystem. |
Constructor Summary | |
---|---|
AbstractMappingStrategy()
|
Method Summary | |
---|---|
protected AgiScript |
createAgiScriptInstance(java.lang.String className)
Creates a new instance of an AGI script. |
protected java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader to use for loading AgiScript classes and load other resources like the mapping properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.asteriskjava.fastagi.MappingStrategy |
---|
determineScript |
Field Detail |
---|
protected Log logger
Constructor Detail |
---|
public AbstractMappingStrategy()
Method Detail |
---|
protected java.lang.ClassLoader getClassLoader()
By default this method returns a class loader that searches for classes in the "agi" subdirectory (if it exists) and uses the context class loader of the current thread as the parent class loader.
You can override this method if you prefer using a different class loader.
protected AgiScript createAgiScriptInstance(java.lang.String className)
className
- Class name of the AGI script. The class must implement
AgiScript
.
null
is
returned.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |