Codota Logo
ProxettaFactory._this
Code IndexAdd Codota to your IDE (free)

How to use
_this
method
in
jodd.proxetta.ProxettaFactory

Best Java code snippets using jodd.proxetta.ProxettaFactory._this (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: oblac/jodd

/**
 * Sets requested proxy class name.
 */
public T setTargetProxyClassName(final String targetProxyClassName) {
  this.requestedProxyClassName = targetProxyClassName;
  return _this();
}
origin: oblac/jodd

/**
 * Defines class input stream as a target.
 */
protected T setTarget(final InputStream target) {
  assertTargetIsNotDefined();
  targetInputStream = target;
  targetClass = null;
  targetClassName = null;
  return _this();
}
origin: oblac/jodd

/**
 * Defines class as a target.
 */
public T setTarget(final Class target) {
  assertTargetIsNotDefined();
  try {
    targetInputStream = ClassLoaderUtil.getClassAsStream(target);
    if (targetInputStream == null) {
      throw new ProxettaException("Target class not found: " + target.getName());
    }
    targetClass = target;
    targetClassName = target.getName();
  }
  catch (IOException ioex) {
    StreamUtil.close(targetInputStream);
    throw new ProxettaException("Unable to stream class: " + target.getName(), ioex);
  }
  return _this();
}
origin: oblac/jodd

/**
 * Defines class name as a target.
 * Class will not be loaded by classloader!
 */
protected T setTarget(final String targetName) {
  assertTargetIsNotDefined();
  try {
    targetInputStream = ClassLoaderUtil.getClassAsStream(targetName);
    if (targetInputStream == null) {
      throw new ProxettaException("Target class not found: " + targetName);
    }
    targetClassName = targetName;
    targetClass = null;
  }
  catch (IOException ioex) {
    StreamUtil.close(targetInputStream);
    throw new ProxettaException("Unable to get stream class name: " + targetName, ioex);
  }
  return _this();
}
origin: org.jodd/jodd-proxetta

/**
 * Sets requested proxy class name.
 */
public T setTargetProxyClassName(final String targetProxyClassName) {
  this.requestedProxyClassName = targetProxyClassName;
  return _this();
}
origin: org.jodd/jodd-proxetta

/**
 * Defines class input stream as a target.
 */
protected T setTarget(final InputStream target) {
  assertTargetIsNotDefined();
  targetInputStream = target;
  targetClass = null;
  targetClassName = null;
  return _this();
}
origin: org.jodd/jodd-proxetta

/**
 * Defines class as a target.
 */
public T setTarget(final Class target) {
  assertTargetIsNotDefined();
  try {
    targetInputStream = ClassLoaderUtil.getClassAsStream(target);
    if (targetInputStream == null) {
      throw new ProxettaException("Target class not found: " + target.getName());
    }
    targetClass = target;
    targetClassName = target.getName();
  }
  catch (IOException ioex) {
    StreamUtil.close(targetInputStream);
    throw new ProxettaException("Unable to stream class: " + target.getName(), ioex);
  }
  return _this();
}
origin: org.jodd/jodd-proxetta

/**
 * Defines class name as a target.
 * Class will not be loaded by classloader!
 */
protected T setTarget(final String targetName) {
  assertTargetIsNotDefined();
  try {
    targetInputStream = ClassLoaderUtil.getClassAsStream(targetName);
    if (targetInputStream == null) {
      throw new ProxettaException("Target class not found: " + targetName);
    }
    targetClassName = targetName;
    targetClass = null;
  }
  catch (IOException ioex) {
    StreamUtil.close(targetInputStream);
    throw new ProxettaException("Unable to get stream class name: " + targetName, ioex);
  }
  return _this();
}
jodd.proxettaProxettaFactory_this

Popular methods of ProxettaFactory

  • setTarget
    Defines class name as a target. Class will not be loaded by classloader!
  • define
    Defines class.
  • assertProxyIsCreated
    Checks if proxy is created and throws an exception if not.
  • assertTargetIsNotDefined
    Checks if target is not defined yet.
  • dumpClassInDebugFolder
    Writes created class content to output folder for debugging purposes.
  • getProxyClassName
    Returns proxy class name.
  • isProxyApplied
    Returns true if at least one method was wrapped.
  • process
  • toByteArray
    Returns raw bytecode.
  • newInstance
    Creates new instance of created class. Assumes default no-arg constructor.

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now