作者:北斗盖全球 | 来源:互联网 | 2024-10-22 09:11
本文整理了Java中org.jboss.beans.info.spi.BeanInfo.getMethods()方法的一些代码示例,展示了BeanInfo.getMethods()的具体用法。这些代码
本文整理了Java中org.jboss.beans.info.spi.BeanInfo.getMethods()
方法的一些代码示例,展示了BeanInfo.getMethods()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BeanInfo.getMethods()
方法的具体详情如下:
包路径:org.jboss.beans.info.spi.BeanInfo
类名称:BeanInfo
方法名:getMethods
BeanInfo.getMethods介绍
[英]Get the method information.
[中]获取方法信息。
代码示例
代码示例来源:origin: org.jboss.microcontainer/jboss-container
public Set getMethods()
{
return delegate.getMethods();
}
代码示例来源:origin: org.jboss/jboss-reflect
public Set getMethods()
{
return delegate.getMethods();
}
代码示例来源:origin: org.jboss.kernel/jboss-jmx-mc-int
private void analyzeParameters(ServiceValueContext valueContext, KernelControllerContext factoryContext) throws Exception
{
BeanInfo beanInfo = factoryContext.getBeanInfo();
Set allMethods = beanInfo.getMethods();
populateParameterTypes(allMethods, method, parameterMetaData);
parameterTypes = new String[parameterMetaData.size()];
parameterValues = new Object[parameterMetaData.size()];
for (int i = 0; i {
ServiceValueFactoryParameterMetaData metadata = parameterMetaData.get(i);
parameterTypes[i] = metadata.getParameterTypeName();
parameterValues[i] = metadata.getValue(valueContext);
}
}
代码示例来源:origin: org.jboss.microcontainer/jboss-jmx-mc-int
private void analyzeParameters(ServiceValueContext valueContext, KernelControllerContext factoryContext) throws Exception
{
BeanInfo beanInfo = factoryContext.getBeanInfo();
Set allMethods = beanInfo.getMethods();
populateParameterTypes(allMethods, method, parameterMetaData);
parameterTypes = new String[parameterMetaData.size()];
parameterValues = new Object[parameterMetaData.size()];
for (int i = 0; i {
ServiceValueFactoryParameterMetaData metadata = parameterMetaData.get(i);
parameterTypes[i] = metadata.getParameterTypeName();
parameterValues[i] = metadata.getValue(valueContext);
}
}
代码示例来源:origin: org.jboss.microcontainer/jboss-kernel
/**
* Nullify by matching type on .
*
* @param name the property name
* @param typeInfo the type info
* @throws Throwable for any error
*/
protected void nullifyByMatchingType(String name, TypeInfo typeInfo) throws Throwable
{
// TODO - remove this Character.toUpperCase once Reflect is updated
String upperName = "set" + Character.toUpperCase(name.charAt(0));
if (name.length() > 1)
upperName += name.substring(1);
Set methods = beanInfo.getMethods();
for (MethodInfo minfo : methods)
{
String miName = minfo.getName();
if (upperName.equals(miName))
{
TypeInfo returnType = minfo.getReturnType();
TypeInfo[] parameters = minfo.getParameterTypes();
if (parameters.length == 1 && PrimitiveInfo.VOID.equals(returnType) && typeInfo.equals(parameters[0]))
{
minfo.invoke(target, new Object[]{null});
return;
}
}
}
}
代码示例来源:origin: org.jboss.microcontainer/jboss-kernel
Set methods = info.getMethods();
if (methods != null && methods.isEmpty() == false)