protected void bindJerseyComponent(Object resource) {
        Preconditions.checkNotNull(resource, "Resource cannot be null.");
        buildBinders();
        jerseyBinder.addBinding().toInstance(resource);
    }
protected void bindJerseyComponent(Object resource) {
        Preconditions.checkNotNull(resource, "Resource cannot be null.");
        buildBinders();
        jerseyBinder.addBinding().toInstance(resource);
    }
protected void bindJerseyComponent ( Object resource ) { Preconditions . checkNotNull ( resource , "Resource cannot be null." ) ; buildBinders ( ) ; jerseyBinder . addBinding ( ) . toInstance ( resource ) ; }
Add a resource to the graceland platform.
<p/>
There are two ways of adding a resource:
<ul>
<li><strong>Instance</strong> - bind an instance of a resource directly.</li>
<li><strong>Class</strong> - bind a class of a resource, and it will be built by the {@link com.google.inject.Injector}.</li>
</ul>

@param resource The resource to add, either a {@link java.lang.Class} or an instance.
Add a resource to the graceland platform . <p / > There are two ways of adding a resource : <ul > <li > <strong > Instance< / strong > - bind an instance of a resource directly . < / li > <li > <strong > Class< / strong > - bind a class of a resource and it will be built by the { @link com . google . inject . Injector } . < / li > < / ul >