Engine.getInstance
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.restlet.engine.Engine.getInstance(Showing top 15 results out of 315)

  • Common ways to obtain Engine
private void myMethod () {
Engine e =
  • Engine.getInstance()
  • Smart code suggestions by Codota
}
origin: org.restlet.jee/org.restlet

/**
 * Returns a logger based on the given logger name.
 * 
 * @param loggerName
 *            The logger name.
 * @return The logger.
 */
public static Logger getLogger(String loggerName) {
  return getInstance().getLoggerFacade().getLogger(loggerName);
}
origin: org.restlet.jse/org.restlet

/**
 * Returns the classloader resource for a given name/path.
 * 
 * @param name
 *            The name/path to lookup.
 * @return The resource URL.
 */
public static java.net.URL getResource(String name) {
  return getInstance().getClassLoader().getResource(name);
}
origin: org.restlet.jee/org.restlet

/**
 * Returns a logger based on the class name of the given object.
 * 
 * @param clazz
 *            The parent class.
 * @return The logger.
 */
public static Logger getLogger(Class<?> clazz) {
  return getInstance().getLoggerFacade().getLogger(clazz);
}
origin: org.restlet.osgi/org.restlet

/**
 * Returns the class object for the given name using the engine classloader.
 * 
 * @param className
 *            The class name to lookup.
 * @return The class object or null if the class was not found.
 * @see #getClassLoader()
 */
public static Class<?> loadClass(String className)
    throws ClassNotFoundException {
  return getInstance().getClassLoader().loadClass(className);
}
origin: org.restlet.jee/org.restlet

/**
 * Returns an anonymous logger. By default it calls
 * {@link #getLogger(String)} with a "" name.
 * 
 * @return The logger.
 */
public static Logger getAnonymousLogger() {
  return getInstance().getLoggerFacade().getAnonymousLogger();
}
origin: org.restlet.jse/org.restlet

/**
 * Returns a logger based on the class name of the given object.
 * 
 * @param clazz
 *            The parent class.
 * @return The logger.
 */
public static Logger getLogger(Class<?> clazz) {
  return getInstance().getLoggerFacade().getLogger(clazz);
}
origin: org.restlet.osgi/org.restlet

/**
 * Returns a logger based on the class name of the given object.
 * 
 * @param clazz
 *            The parent class.
 * @return The logger.
 */
public static Logger getLogger(Class<?> clazz) {
  return getInstance().getLoggerFacade().getLogger(clazz);
}
origin: org.restlet.jse/org.restlet

/**
 * Returns an anonymous logger. By default it calls
 * {@link #getLogger(String)} with a "" name.
 * 
 * @return The logger.
 */
public static Logger getAnonymousLogger() {
  return getInstance().getLoggerFacade().getAnonymousLogger();
}
origin: org.restlet.jse/org.restlet

/**
 * Returns the class object for the given name using the engine classloader.
 * 
 * @param className
 *            The class name to lookup.
 * @return The class object or null if the class was not found.
 * @see #getClassLoader()
 */
public static Class<?> loadClass(String className)
    throws ClassNotFoundException {
  return getInstance().getClassLoader().loadClass(className);
}
origin: org.restlet.jse/org.restlet

/**
 * Returns a logger based on the given logger name.
 * 
 * @param loggerName
 *            The logger name.
 * @return The logger.
 */
public static Logger getLogger(String loggerName) {
  return getInstance().getLoggerFacade().getLogger(loggerName);
}
origin: org.restlet.osgi/org.restlet

/**
 * Returns the classloader resource for a given name/path.
 * 
 * @param name
 *            The name/path to lookup.
 * @return The resource URL.
 */
public static java.net.URL getResource(String name) {
  return getInstance().getClassLoader().getResource(name);
}
origin: org.restlet.gae/org.restlet

/**
 * Returns the class object for the given name using the engine classloader.
 * 
 * @param className
 *            The class name to lookup.
 * @return The class object or null if the class was not found.
 * @see #getClassLoader()
 */
public static Class<?> loadClass(String className)
    throws ClassNotFoundException {
  return getInstance().getClassLoader().loadClass(className);
}
origin: org.restlet.gae/org.restlet

/**
 * Returns a logger based on the class name of the given object.
 * 
 * @param clazz
 *            The parent class.
 * @return The logger.
 */
public static Logger getLogger(Class<?> clazz) {
  return getInstance().getLoggerFacade().getLogger(clazz);
}
origin: org.restlet.jee/org.restlet

/**
 * Returns the class object for the given name using the engine classloader.
 * 
 * @param className
 *            The class name to lookup.
 * @return The class object or null if the class was not found.
 * @see #getClassLoader()
 */
public static Class<?> loadClass(String className)
    throws ClassNotFoundException {
  return getInstance().getClassLoader().loadClass(className);
}
origin: org.restlet.jee/org.restlet

/**
 * Returns the classloader resource for a given name/path.
 * 
 * @param name
 *            The name/path to lookup.
 * @return The resource URL.
 */
public static java.net.URL getResource(String name) {
  return getInstance().getClassLoader().getResource(name);
}
org.restlet.engineEnginegetInstance

Javadoc

Returns the registered Restlet engine.

Popular methods of Engine

  • loadClass
    Returns the class object for the given name using the engine classloader.
  • clearThreadLocalVariables
    Clears the thread local variables set by the Restlet API and engine.
  • getRegisteredConverters
    Returns the list of available converters.
  • <init>
    Constructor.
  • getClassLoader
    Returns the class loader. It uses the delegation model with the Engine class's class loader as a par
  • createClassLoader
    Creates a new class loader. By default, it returns an instance of org.restlet.engine.util.EngineClas
  • createHelper
    Creates a new helper for a given server connector.
  • discoverAuthenticators
    Discovers the authenticator helpers and register the default helpers.
  • discoverConnectors
    Discovers the server and client connectors and register the default connectors.
  • discoverConverters
    Discovers the converter helpers and register the default helpers.
  • discoverProtocols
    Discovers the protocol helpers and register the default helpers.
  • findHelper
    Finds the authenticator helper supporting the given scheme.
  • discoverProtocols,
  • findHelper,
  • getLogger,
  • getLoggerFacade,
  • getProviderClassName,
  • getRegisteredAuthenticators,
  • getRegisteredClients,
  • getRegisteredProtocols,
  • getRegisteredServers

Popular classes and methods

  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Font (java.awt)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)