|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.component.factory.DefaultComponentFactory.MethodWrapper
This class provides a wrapper for tracking methods on the component facade, purely through their signature (name and parameters, but not declaring class). These objects can be created for each exposed method in a set of interfaces in order to determine if there are any collisions of name and parameter type between different methods being exposed on a component facade.
Field Summary | |
private Method |
method
Holds the method being wrapped. |
Constructor Summary | |
DefaultComponentFactory.MethodWrapper(Method method)
Constructs a new wrapper around a method. |
Method Summary | |
boolean |
equals(Object obj)
Returns true if obj is a Method and the Method within this wrapper has the same name and parameters as obj. |
Method |
getMethod()
Returns the Method being wrapped. |
private String |
getTypeString(Class type)
Adjusts the String of the component type as needed. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private Method method
Constructor Detail |
public DefaultComponentFactory.MethodWrapper(Method method)
method
- to wrapMethod Detail |
public Method getMethod()
public boolean equals(Object obj)
equals
in class Object
obj
- checks the equality of the method object
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
private String getTypeString(Class type)
type
- class to inspect
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |