Codota Logo
Assert.notNull
Code IndexAdd Codota to your IDE (free)

How to use
notNull
method
in
org.beangle.commons.lang.Assert

Best Java code snippets using org.beangle.commons.lang.Assert.notNull (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.beangle.commons/beangle-commons-orm

public SessionHolder(Session session) {
 Assert.notNull(session, "Session must not be null");
 this.session = session;
}
origin: org.beangle.security/beangle-security-ids

public void init() throws Exception {
 Assert.notNull(this.config, "cas config must be specified");
}
origin: org.beangle.ioc/beangle-ioc-spring

/**
 * Create a new ServletContextResource.
 * <p>
 * The Servlet spec requires that resource paths start with a slash, even if many containers
 * accept paths without leading slash too. Consequently, the given path will be prepended with a
 * slash if it doesn't already start with one.
 *
 * @param servletContext the ServletContext to load from
 * @param path the path of the resource
 */
public ServletContextResource(ServletContext servletContext, String path) {
 // check ServletContext
 Assert.notNull(servletContext, "Cannot resolve ServletContextResource without ServletContext");
 this.servletContext = servletContext;
 // check path
 Assert.notNull(path, "Path is required");
 String pathToUse = StringUtils.cleanPath(path);
 if (!pathToUse.startsWith("/")) {
  pathToUse = "/" + pathToUse;
 }
 this.path = pathToUse;
}
origin: org.beangle.ioc/beangle-ioc-spring

/**
 * <p>
 * register.
 * </p>
 *
 * @param type a {@link java.lang.Class} object.
 * @param name a {@link java.lang.String} object.
 * @param args a {@link java.lang.Object} object.
 */
public void register(Class<?> type, String name, Object... args) {
 Assert.notNull(name, "class'name is null");
 if (0 == args.length) {
  nameTypes.put(name, type);
 } else {
  // 注册bean的name和别名
  BeanDefinition bd = (BeanDefinition) args[0];
  definitionRegistry.registerBeanDefinition(name, bd);
  // for list(a.class,b.class) binding usage
  String alias = bd.getBeanClassName();
  if (bd.isSingleton() && !name.equals(alias) && !definitionRegistry.isBeanNameInUse(alias)) {
   definitionRegistry.registerAlias(name, alias);
  }
  if (null == type) {
   if (!bd.isAbstract()) throw new RuntimeException("Concrete bean should has class.");
  } else nameTypes.put(name, type);
 }
}
org.beangle.commons.langAssertnotNull

Popular methods of Assert

  • isTrue
  • notEmpty

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Path (java.nio.file)
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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