com.tinkerpop.rexster
Class WebServerRexsterApplicationProvider

java.lang.Object
  extended by com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable<RexsterApplication>
      extended by com.tinkerpop.rexster.WebServerRexsterApplicationProvider
All Implemented Interfaces:
com.sun.jersey.spi.inject.Injectable<RexsterApplication>, com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>

@Provider
public class WebServerRexsterApplicationProvider
extends com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable<RexsterApplication>
implements com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>

A Jersey InjectableProvider and Injectable that supplies Servlets which have a @Context annotated RexsterApplication field with a RexsterApplicationImpl.

Users interested in embedding Rexster into their custom application should write a Provider class following this pattern that supplies their custom implementation of RexsterApplication.

Author:
Jordan A. Lewis (http://jordanlewis.org)

Constructor Summary
WebServerRexsterApplicationProvider()
           
 
Method Summary
 com.sun.jersey.spi.inject.Injectable getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic, javax.ws.rs.core.Context context, Type type)
           
 com.sun.jersey.core.spi.component.ComponentScope getScope()
           
 RexsterApplication getValue()
           
 RexsterApplication getValue(com.sun.jersey.api.core.HttpContext c)
           
static void start(org.apache.commons.configuration.XMLConfiguration properties)
           
static void stop()
           
 
Methods inherited from class com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable
transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServerRexsterApplicationProvider

public WebServerRexsterApplicationProvider()
Method Detail

start

public static void start(org.apache.commons.configuration.XMLConfiguration properties)

stop

public static void stop()

getValue

public RexsterApplication getValue(com.sun.jersey.api.core.HttpContext c)
Specified by:
getValue in class com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable<RexsterApplication>

getValue

public RexsterApplication getValue()
Specified by:
getValue in interface com.sun.jersey.spi.inject.Injectable<RexsterApplication>
Overrides:
getValue in class com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable<RexsterApplication>

getScope

public com.sun.jersey.core.spi.component.ComponentScope getScope()
Specified by:
getScope in interface com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>

getInjectable

public com.sun.jersey.spi.inject.Injectable getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic,
                                                          javax.ws.rs.core.Context context,
                                                          Type type)
Specified by:
getInjectable in interface com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>


Copyright © 2009-2012. All Rights Reserved.