congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProxettaFactory.assertTargetIsNotDefined
Code IndexAdd Tabnine to your IDE (free)

How to use
assertTargetIsNotDefined
method
in
jodd.proxetta.ProxettaFactory

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

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

/**
 * 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.proxettaProxettaFactoryassertTargetIsNotDefined

Javadoc

Checks if target is not defined yet.

Popular methods of ProxettaFactory

  • setTarget
    Defines class name as a target. Class will not be loaded by classloader!
  • define
    Defines class.
  • _this
  • assertProxyIsCreated
    Checks if proxy is created and throws an exception if not.
  • 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
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • 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
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • CodeWhisperer alternatives
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