Class LoopbackRestServerSingleton
java.lang.Object
org.refcodes.observer.AbstractObservable<RestEndpoint, HttpRequest>
org.refcodes.rest.AbstractRestServer
org.refcodes.rest.LoopbackRestServer
org.refcodes.rest.LoopbackRestServerSingleton
- All Implemented Interfaces:
Disposable, Observable<RestEndpoint>, Observers<RestEndpoint, RestServer>, RestServer, BaseLocatorAccessor, MediaTypeFactoryLookup, MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, RealmAccessor
The singleton of the
LoopbackRestServer for easy RestServer
access.-
Nested Class Summary
Nested classes/interfaces inherited from interface BaseLocatorAccessor
BaseLocatorAccessor.BaseLocatorBuilder<B>, BaseLocatorAccessor.BaseLocatorMutator, BaseLocatorAccessor.BaseLocatorPropertyNested classes/interfaces inherited from interface MediaTypeFactoryLookup
MediaTypeFactoryLookup.MutableMediaTypeFactoryLookupNested classes/interfaces inherited from interface RealmAccessor
RealmAccessor.RealmBuilder<B>, RealmAccessor.RealmMutator, RealmAccessor.RealmProperty -
Field Summary
Fields inherited from class AbstractRestServer
_baseLocator, _realmFields inherited from class AbstractObservable
_executorService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstantiates a new loopback rest server singleton. -
Method Summary
Modifier and TypeMethodDescriptionstatic LoopbackRestServerReturns the singleton's instance as fabricated by thisLoopbackRestServerSingleton.Methods inherited from class LoopbackRestServer
onHttpRequest, onHttpRequest, withDisableObservers, withEnableObservers, withObserversActiveMethods inherited from class AbstractRestServer
addMediaTypeFactory, dispose, fireEvent, getBaseLocator, getFactoryMediaTypes, getRealm, initMedaTypeFactories, isObserversActive, observers, postIntercept, preIntercept, setObserversActive, subscribeObserver, toMediaTypeFactory, toMediaTypeFactory, toNegotiatedContenType, toResponseBody, unsubscribeObserverMethods inherited from class AbstractObservable
clear, doHandleEventListenerException, fireEvent, getThreadPriority, hasObserver, isEmpty, setThreadPriority, sizeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MediaTypeFactoryLookup
hasMediaTypeFactoryMethods inherited from interface Observable
hasObserverMethods inherited from interface Observers
disableObservers, enableObservers
-
Constructor Details
-
LoopbackRestServerSingleton
protected LoopbackRestServerSingleton()Instantiates a new loopback rest server singleton.
-
-
Method Details
-
getInstance
Returns the singleton's instance as fabricated by thisLoopbackRestServerSingleton.- Returns:
- The
LoopbackRestServersingleton's instance.
-