Tabnine Logo
ProxettaFactory._this
Code IndexAdd Tabnine 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)

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 post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now