public final class MethodDescriptor extends Descriptor
Modifier and Type | Field and Description |
---|---|
static String |
ALL_METHODS
The method descriptor name representing all methods.
|
static String |
ALL_OF_NAME
Unused.
|
static String |
EJB_BEAN
Represents the bean class ejbClassSymbol.
|
static String |
EJB_HOME
Represents the bean home interface ejbClassSymbol.
|
static String |
EJB_LOCAL
Represents the local interface and no-interface view ejbClassSymbol.
|
static String |
EJB_LOCALHOME
Represents the bean local home interface ejbClassSymbol.
|
static String |
EJB_REMOTE
Represents the bean remote interface ejbClassSymbol.
|
static String |
EJB_WEB_SERVICE
Represents the web service interface ejbClassSymbol.
|
static String |
LIFECYCLE_CALLBACK
Represents the bean lifecycle methods ejbClassSymbol.
|
static String |
MESSAGE_ENDPOINT_METHOD
Represents the bean MessageEndpoint methods ejbClassSymbol.
|
static String |
TIMER_METHOD
Represents the bean timeout methods ejbClassSymbol.
|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
Constructor and Description |
---|
MethodDescriptor() |
MethodDescriptor(Method method)
Construct an method descriptor from the given method object.
|
MethodDescriptor(Method method,
String methodIntf)
Construct an exact method descriptor from the given method object, classloader and ejb descriptor.
|
MethodDescriptor(String name,
String description,
String ejbClassSymbol)
Constructor for styles 2 and 1.
|
MethodDescriptor(String name,
String description,
String[] parameterClassNames,
String ejbClassSymbol)
Constructs a method descriptor corresponding to methods on the ejb class defined by the ejbClassSymbol (or home
and remote if null) with the same name (or all if ALL_METHODS) and paramater list (or just all by name of this is null).
|
Modifier and Type | Method and Description |
---|---|
void |
addParameterClass(String parameter) |
Vector |
doStyleConversion(EjbDescriptor ejbDescriptor,
Collection allMethods)
Performs a conversion from the style1 style2 and style3 (no interface symbol) to
method descriptors of style3 with an interface symbol.
|
boolean |
equals(Object other)
Equlity iff the parameter names match and the name matches.
|
static String |
fixParamClassName(String param) |
Method |
getDeclaredMethod(Class declaringClass) |
Method |
getDeclaredMethod(EjbDescriptor ejbDescriptor) |
Method |
getDeclaredMethod(EjbDescriptor ejbDescriptor,
Class[] javaParamClassNames) |
String |
getEjbClassSymbol()
Returns the ejb class sybol for this method descriptor.
|
String |
getEjbName() |
String |
getFormattedString() |
String[] |
getJavaParameterClassNames() |
static Map |
getJavaPrimitiveTypes()
Computes the mapping between java primitive type and class loaders identifier
for such types.
|
Method |
getMethod(Class declaringClass) |
Method |
getMethod(EjbDescriptor ejbDescriptor) |
String[] |
getParameterClassNames() |
String[] |
getParameterClassNamesFor(Method method,
Class[] paramTypes) |
String |
getPrettyParameterString() |
int |
getStyle() |
int |
hashCode() |
boolean |
implies(Object other)
Indicates if a method descriptor implies the other one
|
boolean |
isExact()
Returns true if I have enough information to specifiy a unique method
on an ejb's home or remote interface unambiguously.
|
String |
prettyPrint() |
void |
print(StringBuffer toStringBuffer)
My pretty format.
|
void |
setEjbClassSymbol(String ejbClassSymbol)
Sets the ejb class sybol for this method descriptor.
|
void |
setEjbName(String ejbName) |
void |
setEmptyParameterClassNames() |
static String |
xmlFormat2JavaClassNames(String param) |
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String EJB_HOME
public static final String EJB_LOCALHOME
public static final String EJB_REMOTE
public static final String EJB_LOCAL
public static final String EJB_WEB_SERVICE
public static final String EJB_BEAN
public static final String ALL_OF_NAME
public static final String ALL_METHODS
public static final String TIMER_METHOD
public static final String LIFECYCLE_CALLBACK
public static final String MESSAGE_ENDPOINT_METHOD
public MethodDescriptor(String name, String description, String[] parameterClassNames, String ejbClassSymbol)
public MethodDescriptor(String name, String description, String ejbClassSymbol)
public MethodDescriptor(Method method, String methodIntf)
public MethodDescriptor(Method method)
public MethodDescriptor()
public void setEmptyParameterClassNames()
public void addParameterClass(String parameter)
public void setEjbName(String ejbName)
public String getEjbName()
public boolean isExact()
public int getStyle()
public Method getMethod(EjbDescriptor ejbDescriptor)
public Method getDeclaredMethod(EjbDescriptor ejbDescriptor)
public Method getDeclaredMethod(EjbDescriptor ejbDescriptor, Class[] javaParamClassNames)
public Vector doStyleConversion(EjbDescriptor ejbDescriptor, Collection allMethods)
public String getEjbClassSymbol()
public void setEjbClassSymbol(String ejbClassSymbol)
public String getFormattedString()
public String getPrettyParameterString()
public String[] getParameterClassNames()
public String[] getJavaParameterClassNames()
public boolean equals(Object other)
public boolean implies(Object other)
public void print(StringBuffer toStringBuffer)
print
in class Descriptor
public String prettyPrint()
public String[] getParameterClassNamesFor(Method method, Class[] paramTypes)
public static Map getJavaPrimitiveTypes()
Copyright © 2018. All rights reserved.