@Override public final void onEnd() { X_Log.trace(getClass(),"ending", this); try { for (LineReader delegate : delegates.forEach()) { X_Log.debug(getClass(),"ending delegate", delegate.getClass(), delegate); delegate.onEnd(); } } finally { finished = true; onEnd0(); } synchronized (delegates) { delegates.notifyAll(); } }
public static ClasspathResourceMap compileScopeScanner(MavenProject project, MavenSession session) { URL[] urls = compileScopeUrls(project, session); X_Log.trace(X_Maven.class,"Compile scope URLS",urls); return X_Scanner.scanClassloader(URLClassLoader.newInstance(urls)); }
final ByteArrayOutputStream buffer = new ByteArrayOutputStream(4096); if (!liveCheck.isAlive()) { X_Log.trace(X_IO.class, "Trying to drain a dead process", liveCheck); return;
X_Log.warn(getClass(), "Recursion sickness detected in "+cls+" from "+prefix+"; depth reached "+MAX_DEPTH); if (X_Log.loggable(LogLevel.TRACE)) { X_Log.trace("Consider using the @DoNotIndex annotation in the recursion chain produced by "+prefix);
X_Log.warn(getClass(), "Recursion sickness detected in "+cls+" from "+prefix+"; depth reached "+MAX_DEPTH); if (X_Log.loggable(LogLevel.TRACE)) { X_Log.trace("Consider using the @DoNotIndex annotation in the recursion chain produced by "+prefix);
public void addAnnotations(final Annotation[] annos) { for (final Annotation anno : annos) { // Process all of the various types of annotations that we care about. if (anno instanceof Serializable) { final Serializable serializable = (Serializable) anno; obfuscated = serializable.obfuscated(); final ClientToServer c2s = serializable.clientToServer(); c2sSerializer = c2s.serializer(); c2sEnabled = c2s.enabled(); c2sEncrypted = c2s.encrypted(); final ServerToClient s2c = serializable.serverToClient(); s2cSerializer = s2c.serializer(); s2cEnabled = s2c.enabled(); s2cEncrypted = s2c.encrypted(); } else if (anno instanceof Persistent) { final Persistent persistent = (Persistent) anno; persistenceStrategy = persistent.strategy(); } else if (anno instanceof FieldValidator) { final FieldValidator validator = (FieldValidator) anno; for (final Class<? extends ValidatesValue<?>> validatesValue : validator.validators()) { validators.add(validatesValue); } } else { X_Log.trace(getClass(), "Unhandled annotation ",anno+" in ModelManifest.MethodData.addAnnotatons"); } } }
/** * @param annotaitons */ private void addAnnotations(final Annotation[] annotations) { for (final Annotation anno : annotations) { if (anno instanceof Serializable) { final Serializable serializable = (Serializable) anno; obfuscated = serializable.obfuscated(); final ClientToServer c2s = serializable.clientToServer(); c2sSerializer = c2s.serializer(); c2sEnabled = c2s.enabled(); c2sEncrypted = c2s.encrypted(); final ServerToClient s2c = serializable.serverToClient(); s2cSerializer = s2c.serializer(); s2cEnabled = s2c.enabled(); s2cEncrypted = s2c.encrypted(); } else if (anno instanceof Persistent) { final Persistent persistent = (Persistent) anno; persistenceStrategy = persistent.strategy(); } else if (anno instanceof FieldValidator) { final FieldValidator validator = (FieldValidator) anno; for (final Class<? extends ValidatesValue<?>> validatesValue : validator.validators()) { validators.add(validatesValue); } } else { X_Log.trace(getClass(), "Unhandled annotation ",anno+" in ModelManifest.MethodData.addAnnotatons"); } } }
@Override public void onSuccess(final IOMessage<String> t) { if (cancel) { if (X_Runtime.isDebug()) { X_Log.trace("Ignoring cancelled message", t.url(), t.body()); } return; } request.pending = false; request.statusCode = t.statusCode(); request.statusText = t.statusMessage(); if (deserializer == null) { assert X_String.isEmpty(t.body()) : "Non-null response without a " + "deserializer instance for "+url+"\n Response: "+t.body(); } else { result.set(deserializer.convert(t.body())); } if (handler != null) { handler.onSuccess(result.get()); } }