public String toString() { return Strings.defaultToString(o); }
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(Strings.defaultToString(this)).append('('); buffer.append("spec=").append(Strings.defaultToString(spec)); buffer.append(" mepf=").append(Strings.defaultToString(endpointFactory)); buffer.append(" active=").append(deliveryActive.get()); if (destination != null) buffer.append(" destination=").append(destination); if (connection != null) buffer.append(" connection=").append(connection); if (pool != null) buffer.append(" pool=").append(Strings.defaultToString(pool)); if (dlqHandler != null) buffer.append(" dlq=").append(Strings.defaultToString(dlqHandler)); buffer.append(" transacted=").append(isDeliveryTransacted); buffer.append(')'); return buffer.toString(); }
/** * Invoke on a method * * @param method the method * @param target the target * @param arguments the arguments * @return the result of the invocation * @throws Throwable for any error */ public static Object invoke(Method method, Object target, Object[] arguments) throws Throwable { if (method == null) throw new IllegalArgumentException("Null method"); try { return method.invoke(target, arguments); } catch (Throwable t) { throw handleErrors(method.getName(), Strings.defaultToString(target), method.getParameterTypes(), arguments, t); } }
throw handleErrors(method.getName(), Strings.defaultToString(target), method.getParameterTypes(), arguments, t);
log.trace("new stack for key: " + Strings.defaultToString(rawKey)); stack = new LinkedList(); currentObjects.set(stack); log.trace("old stack for key: " + Strings.defaultToString(rawKey));
public String toString() buffer.append(Strings.defaultToString(this)).append('('); buffer.append("ra=").append(ra); buffer.append(" destination=").append(destination);
/** * Describe <code>popMetaAwareObject</code> method here. * * @see org.jboss.jca.spi.ComponentStack#popMetaAwareObject(Set) * @exception ResourceException if an error occurs */ public void popMetaAwareObject(Set unsharableResources) throws ResourceException { LinkedList stack = (LinkedList) currentObjects.get(); KeyConnectionAssociation oldKey = (KeyConnectionAssociation) stack.removeLast(); if (trace) log.trace("popped object: " + Strings.defaultToString(oldKey)); if (specCompliant) { if (!stack.contains(oldKey)) { disconnect(oldKey, unsharableResources); } // end of if () } else if (debug) { if (closeAll(oldKey.getCMToConnectionsMap()) && error) throw new ResourceException("Some connections were not closed, see the log for the allocation stacktraces"); } //At one time I attempted to recycle connections held over method calls. //This caused problems if the other method call started a new transaction. //To assure optimal use of connections, close them before calling out. }
handleWrongParameters(method.getName(), Strings.defaultToString(target), real.getParameterTypes(), args); handleWrongParameters(method.getName(), Strings.defaultToString(target), real.getParameterTypes(), args);
handleWrongParameters(method.getName(), Strings.defaultToString(target), real.getParameterTypes(), args); handleWrongParameters(method.getName(), Strings.defaultToString(target), real.getParameterTypes(), args);
handleWrongParameters("new", Strings.defaultToString(constructor.getDeclaringClass().getName()), real.getParameterTypes(), args); handleWrongParameters("new", Strings.defaultToString(real.getDeclaringClass().getName()), real.getParameterTypes(), args);
handleWrongParameters("new", Strings.defaultToString(constructor.getDeclaringClass().getName()), real.getParameterTypes(), args); handleWrongParameters("new", Strings.defaultToString(real.getDeclaringClass().getName()), real.getParameterTypes(), args);
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append("["); buffer.append(annotated); buffer.append("]"); return buffer.toString(); }
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append("["); buffer.append(annotated); buffer.append("]"); return buffer.toString(); } }
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append('['); buffer.append("name=").append(name); buffer.append(']'); return buffer.toString(); } }
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append('['); buffer.append("impl=").append(impl); buffer.append(']'); return buffer.toString(); } }
" to " + Strings.defaultToString(target) + " method= " + m); ctx.setTarget(target);
" to " + Strings.defaultToString(target) + " method= " + m); ctx.setTarget(target);