Tabnine Logo
ResteasyDeploymentImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
ResteasyDeploymentImpl
in
org.jboss.resteasy.core

Best Java code snippets using org.jboss.resteasy.core.ResteasyDeploymentImpl (Showing top 14 results out of 315)

origin: resteasy/Resteasy

public static ResteasyDeployment start(String bindPath, SecurityDomain domain) throws Exception
{
 ResteasyDeployment deployment = new ResteasyDeploymentImpl();
 deployment.setSecurityEnabled(true);
 return start(bindPath, domain, deployment);
}
origin: resteasy/Resteasy

@Override
public VertxRegistry getRegistry()
{
 Registry registry = super.getRegistry();
 if (!(registry instanceof VertxRegistry))
 {
   registry = new VertxRegistry(registry, getProviderFactory().getResourceBuilder());
 }
 return (VertxRegistry) registry;
}
origin: resteasy/Resteasy

private void registerJndiComponentResource(String resource)
{
 String[] config = resource.trim().split(";");
 if (config.length < 3)
 {
   throw new RuntimeException(Messages.MESSAGES.jndiComponentResourceNotSetCorrectly());
 }
 String jndiName = config[0];
 Class clazz = null;
 try
 {
   clazz = Thread.currentThread().getContextClassLoader().loadClass(config[1]);
 }
 catch (ClassNotFoundException e)
 {
   throw new RuntimeException(Messages.MESSAGES.couldNotFindClassJndi(config[1]), e);
 }
 boolean cacheRefrence = Boolean.valueOf(config[2].trim());
 JndiComponentResourceFactory factory = new JndiComponentResourceFactory(jndiName, clazz, cacheRefrence);
 getResourceFactories().add(factory);
}
origin: resteasy/Resteasy

Object context = getDefaultContextObjects().get(ResteasyConfiguration.class);
     Object obj = createFromInjectorFactory(entry.getValue(), providerFactory);
     LogMessages.LOGGER.creatingContextObject(entry.getKey(), entry.getValue());
     defaultContextObjects.put(key, obj);
   application = createApplication(applicationClass, dispatcher, providerFactory);
  registration();
origin: resteasy/Resteasy

Application app = ResteasyDeploymentImpl.createApplication(application.trim(), dispatcher, providerFactory);
origin: org.jboss.resteasy/resteasy-core

Object context = getDefaultContextObjects().get(ResteasyConfiguration.class);
     Object obj = createFromInjectorFactory(entry.getValue(), providerFactory);
     LogMessages.LOGGER.creatingContextObject(entry.getKey(), entry.getValue());
     defaultContextObjects.put(key, obj);
   application = createApplication(applicationClass, dispatcher, providerFactory);
  registration();
origin: org.jboss.resteasy/resteasy-core

Application app = ResteasyDeploymentImpl.createApplication(application.trim(), dispatcher, providerFactory);
origin: resteasy/Resteasy

public static ResteasyDeployment start(String bindPath, SecurityDomain domain, Hashtable<String,String> initParams, Hashtable<String,String> contextParams) throws Exception
{
 ResteasyDeployment deployment = new ResteasyDeploymentImpl();
 deployment.setSecurityEnabled(true);
 return start(bindPath, domain, deployment, initParams, contextParams);
}
origin: org.jboss.resteasy/resteasy-core

private void registerJndiComponentResource(String resource)
{
 String[] config = resource.trim().split(";");
 if (config.length < 3)
 {
   throw new RuntimeException(Messages.MESSAGES.jndiComponentResourceNotSetCorrectly());
 }
 String jndiName = config[0];
 Class clazz = null;
 try
 {
   clazz = Thread.currentThread().getContextClassLoader().loadClass(config[1]);
 }
 catch (ClassNotFoundException e)
 {
   throw new RuntimeException(Messages.MESSAGES.couldNotFindClassJndi(config[1]), e);
 }
 boolean cacheRefrence = Boolean.valueOf(config[2].trim());
 JndiComponentResourceFactory factory = new JndiComponentResourceFactory(jndiName, clazz, cacheRefrence);
 getResourceFactories().add(factory);
}
origin: resteasy/Resteasy

public static ResteasyDeployment start(String bindPath, SecurityDomain domain) throws Exception
{
 ResteasyDeployment deployment = new ResteasyDeploymentImpl();
 deployment.setSecurityEnabled(true);
 return start(bindPath, domain, deployment);
}
origin: resteasy/Resteasy

/**
* Creates a web deployment for the jaxrs Application.  Will ignore any @ApplicationPath annotation.
*
* @param application
* @param mapping resteasy.servlet.mapping.prefix
* @return
*/
public DeploymentInfo undertowDeployment(Class<? extends Application> application, String mapping)
{
 ResteasyDeployment deployment = new ResteasyDeploymentImpl();
 deployment.setApplicationClass(application.getName());
 DeploymentInfo di = undertowDeployment(deployment, mapping);
 di.setClassLoader(application.getClassLoader());
 return di;
}
origin: resteasy/Resteasy

/**
* Creates a web deployment for the jaxrs Application.  Will ignore any @ApplicationPath annotation.
*
* @param application
* @param contextPath
* @return
*/
public UndertowJaxrsServer deploy(Class<? extends Application> application, String contextPath)
{
 if (contextPath == null) contextPath = "/";
 if (!contextPath.startsWith("/")) contextPath = "/" + contextPath;
 ResteasyDeployment deployment = new ResteasyDeploymentImpl();
 deployment.setApplicationClass(application.getName());
 DeploymentInfo di = undertowDeployment(deployment);
 di.setClassLoader(application.getClassLoader());
 di.setContextPath(contextPath);
 di.setDeploymentName("Resteasy" + contextPath);
 return deploy(di);
}
origin: resteasy/Resteasy

  public UndertowJaxrsServer deployToServer(UndertowJaxrsServer server, Class<? extends Application> application, String contextPath) {
   ResteasyDeployment deployment = new ResteasyDeploymentImpl();
   deployment.setApplicationClass(application.getName());

   DeploymentInfo di = server.undertowDeployment(deployment);

   di.setClassLoader(application.getClassLoader());
   di.setContextPath(contextPath);
   di.setDeploymentName("Resteasy" + contextPath);
   return server.deploy(di);
  }
}
origin: resteasy/Resteasy

/**
* Creates a web deployment for the jaxrs Application.  Will ignore any @ApplicationPath annotation.
*
* @param application
* @param contextPath
* @return
*/
public UndertowJaxrsServer deploy(Application application, String contextPath)
{
 if (contextPath == null) contextPath = "/";
 if (!contextPath.startsWith("/")) contextPath = "/" + contextPath;
 ResteasyDeployment deployment = new ResteasyDeploymentImpl();
 deployment.setApplication(application);
 DeploymentInfo di = undertowDeployment(deployment);
 di.setClassLoader(application.getClass().getClassLoader());
 di.setContextPath(contextPath);
 di.setDeploymentName("Resteasy" + contextPath);
 return deploy(di);
}
org.jboss.resteasy.coreResteasyDeploymentImpl

Javadoc

This class is used to configure and initialize the core components of RESTEasy.

Most used methods

  • <init>
  • createApplication
  • createFromInjectorFactory
  • getDefaultContextObjects
  • getRegistry
  • getResourceFactories
  • processApplication
  • registerJndiComponentResource
  • registerProvider
  • registration
  • setRegistry
  • startInternal
  • setRegistry,
  • startInternal

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • 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