|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaspoev.binding.BindingsManager
This class encapsulates a group of binidngs which are used together to create an AspectJ aspect to be applied to the AspOEv framework.
| Field Summary | |
protected static java.lang.String |
adviceFileName
|
protected java.util.Hashtable |
bindings
|
protected static BindingsManager |
runtimeBindings
|
| Constructor Summary | |
BindingsManager()
Create a new binding manager. |
|
| Method Summary | |
void |
addBinding(Binding newBinding)
Add a binding to the manager. |
java.util.Collection |
getAllBindings()
Returns a collection of all bindings in this manager. |
Binding |
getBinding(java.lang.String bindingName)
Returns the binding of the specified name, or 'null' if no such binding exists. |
java.lang.String |
getBindingDescriptions()
Returns a string of all bindings associated with this manager. |
java.util.Collection |
getMatchingBindings(java.lang.String modifiers,
java.lang.String returnType,
java.lang.String className,
java.lang.String methodName,
java.lang.String parameterTypes)
Returns a Collection of bindings which match the given criterion. |
static BindingsManager |
getRuntimeBindings()
Returns the static BindingsManager 'runtimeBindings', which contains all bindings. |
void |
printBindings()
Prints out all bindings associated with this bindings manager. |
java.lang.String |
renderAspect()
Returns a string containing the AspectJ aspect created by this bindings manager. |
java.lang.String |
renderAspect(java.lang.String aspectName)
Returns a String containing the AspectJ aspect of the specified name created from this bindings manager. |
java.lang.String |
renderAspect(java.lang.String packageName,
java.lang.String aspectName)
Returns a String containing the AspectJ aspect of the specified package name and name created from this bindings manager. |
java.lang.String |
toString()
|
void |
writeAspect(java.io.File aspectFile,
java.lang.String packageName,
java.lang.String aspectName)
Writes the AspectJ aspect of the represented by this bindings manager to the specifieed file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static BindingsManager runtimeBindings
protected static java.lang.String adviceFileName
protected java.util.Hashtable bindings
| Constructor Detail |
public BindingsManager()
| Method Detail |
public void addBinding(Binding newBinding)
public java.util.Collection getAllBindings()
public Binding getBinding(java.lang.String bindingName)
public java.util.Collection getMatchingBindings(java.lang.String modifiers,
java.lang.String returnType,
java.lang.String className,
java.lang.String methodName,
java.lang.String parameterTypes)
public static BindingsManager getRuntimeBindings()
public java.lang.String renderAspect()
public java.lang.String renderAspect(java.lang.String aspectName)
public java.lang.String renderAspect(java.lang.String packageName,
java.lang.String aspectName)
public java.lang.String getBindingDescriptions()
public void printBindings()
public void writeAspect(java.io.File aspectFile,
java.lang.String packageName,
java.lang.String aspectName)
aspectFile - The file to write the aspect topackageName - The package of the aspectaspectName - The name of the aspectpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||