A D G H I L N O P R S U
A
- addService(ServiceDescriptor<S, SCTX>) - Method in interface org.refcodes.servicebus.ServiceDirectory
-
Registers a service to the service bus.
- addService(ServiceDescriptor<S, SCTX>) - Method in class org.refcodes.servicebus.ServiceDirectoryImpl
-
Registers a service to the service bus.
- AmbiguousServiceRuntimeException - Exception in org.refcodes.servicebus
-
This exception is thrown whenever a service cannot be unambiguously distinguished from another service because a matcher was not strict enough to identify just one service.
- AmbiguousServiceRuntimeException(ServiceMatcher<?>, String) - Constructor for exception org.refcodes.servicebus.AmbiguousServiceRuntimeException
-
Instantiates a new ambiguous service runtime exception.
- AmbiguousServiceRuntimeException(ServiceMatcher<?>, String, String) - Constructor for exception org.refcodes.servicebus.AmbiguousServiceRuntimeException
-
Instantiates a new ambiguous service runtime exception.
- AmbiguousServiceRuntimeException(ServiceMatcher<?>, String, Throwable) - Constructor for exception org.refcodes.servicebus.AmbiguousServiceRuntimeException
-
Instantiates a new ambiguous service runtime exception.
- AmbiguousServiceRuntimeException(ServiceMatcher<?>, String, Throwable, String) - Constructor for exception org.refcodes.servicebus.AmbiguousServiceRuntimeException
-
Instantiates a new ambiguous service runtime exception.
- AmbiguousServiceRuntimeException(ServiceMatcher<?>, Throwable) - Constructor for exception org.refcodes.servicebus.AmbiguousServiceRuntimeException
-
Instantiates a new ambiguous service runtime exception.
- AmbiguousServiceRuntimeException(ServiceMatcher<?>, Throwable, String) - Constructor for exception org.refcodes.servicebus.AmbiguousServiceRuntimeException
-
Instantiates a new ambiguous service runtime exception.
- and(ServiceMatcher<S>...) - Static method in class org.refcodes.servicebus.ServiceMatcherSugar
-
Factory method to create an "AND" matcher for the given matchers.
D
- destroyServices() - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Destroy services.
- DuplicateServiceRuntimeException - Exception in org.refcodes.servicebus
-
This exception is thrown whenever a service, which cannot be distinguished from another service, is added to the service bus.
- DuplicateServiceRuntimeException(Service<?>, String) - Constructor for exception org.refcodes.servicebus.DuplicateServiceRuntimeException
-
Instantiates a new duplicate service runtime exception.
- DuplicateServiceRuntimeException(Service<?>, String, String) - Constructor for exception org.refcodes.servicebus.DuplicateServiceRuntimeException
-
Instantiates a new duplicate service runtime exception.
- DuplicateServiceRuntimeException(Service<?>, String, Throwable) - Constructor for exception org.refcodes.servicebus.DuplicateServiceRuntimeException
-
Instantiates a new duplicate service runtime exception.
- DuplicateServiceRuntimeException(Service<?>, String, Throwable, String) - Constructor for exception org.refcodes.servicebus.DuplicateServiceRuntimeException
-
Instantiates a new duplicate service runtime exception.
- DuplicateServiceRuntimeException(Service<?>, Throwable) - Constructor for exception org.refcodes.servicebus.DuplicateServiceRuntimeException
-
Instantiates a new duplicate service runtime exception.
- DuplicateServiceRuntimeException(Service<?>, Throwable, String) - Constructor for exception org.refcodes.servicebus.DuplicateServiceRuntimeException
-
Instantiates a new duplicate service runtime exception.
G
- getGroupId() - Method in interface org.refcodes.servicebus.GroupIdAccessor
-
Retrieves the group ID from the group ID property.
- getGroupId() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
-
Retrieves the group ID from the group ID property.
- getName() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
- getNameId() - Method in interface org.refcodes.servicebus.NameIdAccessor
-
Retrieves the name ID from the name ID property.
- getNameId() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
-
Retrieves the name ID from the name ID property.
- getObservableLifeCycleAutomaton() - Method in class org.refcodes.servicebus.ServiceContextImpl
- getService() - Method in interface org.refcodes.servicebus.ServiceAccessor
-
Retrieves the
Service
property from the property. - getService() - Method in class org.refcodes.servicebus.ServiceDescriptorImpl
-
Retrieves the
Service
property from the property. - getServiceBus() - Method in interface org.refcodes.servicebus.ServiceBusAccessor
-
Retrieves the
ServiceBus
property from the property. - getServiceBus() - Method in class org.refcodes.servicebus.ServiceContextImpl
-
Retrieves the
ServiceBus
property from the property. - getServiceContext() - Method in interface org.refcodes.servicebus.ServiceContextAccessor
-
Retrieves the
Service
's context property from the property. - getServiceContext() - Method in class org.refcodes.servicebus.ServiceDescriptorImpl
-
Retrieves the
Service
's context property from the property. - getServiceDescriptor() - Method in interface org.refcodes.servicebus.ServiceDescriptorAccessor
-
Retrieves the
ServiceDescriptor
property from the property. - getServiceDescriptors() - Method in class org.refcodes.servicebus.ServiceDirectoryImpl
-
Returns a collection containing the
ServiceDescriptor
instances known by theServiceLookup
. - getServiceDescriptors() - Method in interface org.refcodes.servicebus.ServiceLookup
-
Returns a collection containing the
ServiceDescriptor
instances known by theServiceLookup
. - getServiceDescriptors() - Method in class org.refcodes.servicebus.ServiceLookupImpl
-
Returns a collection containing the
ServiceDescriptor
instances known by theServiceLookup
. - getServiceMatcher() - Method in interface org.refcodes.servicebus.ServiceMatcherAccessor
-
Retrieves the
ServiceMatcher
property from the property. - getUniversalId() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
- GroupIdAccessor - Interface in org.refcodes.servicebus
-
Provides an accessor for a group ID property.
- GroupIdAccessor.GroupIdMutator - Interface in org.refcodes.servicebus
-
Provides a mutator for a group ID property.
- GroupIdAccessor.GroupIdProperty - Interface in org.refcodes.servicebus
-
Provides a group ID property.
H
- hasService(ServiceDescriptor<S, SCTX>) - Method in class org.refcodes.servicebus.ServiceDirectoryImpl
-
Determines whether the given service is known by the service bus by taking the service type and the service Meta-Data as criteria, not the service identity.
- hasService(ServiceDescriptor<S, SCTX>) - Method in interface org.refcodes.servicebus.ServiceLookup
-
Determines whether the given service is known by the service bus by taking the service type and the service Meta-Data as criteria, not the service identity.
- hasService(ServiceDescriptor<S, SCTX>) - Method in class org.refcodes.servicebus.ServiceLookupImpl
-
Determines whether the given service is known by the service bus by taking the service type and the service Meta-Data as criteria, not the service identity.
- hasService(ServiceMatcher<S>) - Method in interface org.refcodes.servicebus.ServiceBus
-
Determines whether the given
ServiceMatcher
will result in a singleService
to be looked up. - hasService(ServiceMatcher<S>) - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Determines whether the given
ServiceMatcher
will result in a singleService
to be looked up.
I
- initializeServices() - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Initialize services.
- isAssignableFrom(Class<?>) - Static method in class org.refcodes.servicebus.ServiceMatcherSugar
-
Factory method to create an service matcher by service type.
- isMatching(S) - Method in interface org.refcodes.servicebus.ServiceMatcher
-
Tests whether the given service matches this descriptor by comparing the service's type with the type specified in this descriptor as well as the service's Meta-Data with the Meta-Data stored in the descriptor. .
L
- lookupService(ServiceMatcher<S>) - Method in interface org.refcodes.servicebus.ServiceBus
-
Looks for a service matching the given service descriptor and returns it if found.
- lookupService(ServiceMatcher<S>) - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Looks for a service matching the given service descriptor and returns it if found.
N
- NameIdAccessor - Interface in org.refcodes.servicebus
-
Provides an accessor for a name ID property.
- NameIdAccessor.NameIdMutator - Interface in org.refcodes.servicebus
-
Provides a mutator for a name ID property.
- NameIdAccessor.NameIdProperty - Interface in org.refcodes.servicebus
-
Provides a name ID property.
- NoMatchingServiceRuntimeException - Exception in org.refcodes.servicebus
-
This exception is thrown whenever a service cannot be unambiguously distinguished from another service because a matcher was not strict enough to identify just one service.
- NoMatchingServiceRuntimeException(ServiceMatcher<?>, String) - Constructor for exception org.refcodes.servicebus.NoMatchingServiceRuntimeException
-
Instantiates a new no matching service runtime exception.
- NoMatchingServiceRuntimeException(ServiceMatcher<?>, String, String) - Constructor for exception org.refcodes.servicebus.NoMatchingServiceRuntimeException
-
Instantiates a new no matching service runtime exception.
- NoMatchingServiceRuntimeException(ServiceMatcher<?>, String, Throwable) - Constructor for exception org.refcodes.servicebus.NoMatchingServiceRuntimeException
-
Instantiates a new no matching service runtime exception.
- NoMatchingServiceRuntimeException(ServiceMatcher<?>, String, Throwable, String) - Constructor for exception org.refcodes.servicebus.NoMatchingServiceRuntimeException
-
Instantiates a new no matching service runtime exception.
- NoMatchingServiceRuntimeException(ServiceMatcher<?>, Throwable) - Constructor for exception org.refcodes.servicebus.NoMatchingServiceRuntimeException
-
Instantiates a new no matching service runtime exception.
- NoMatchingServiceRuntimeException(ServiceMatcher<?>, Throwable, String) - Constructor for exception org.refcodes.servicebus.NoMatchingServiceRuntimeException
-
Instantiates a new no matching service runtime exception.
O
- onLifecycleEvent(LifeCycleRequestEvent) - Method in class org.refcodes.servicebus.ServiceBusImpl
-
This method is used to handle life-cycle events and inform the according services of any life-cycle state changes.
- or(ServiceMatcher<S>...) - Static method in class org.refcodes.servicebus.ServiceMatcherSugar
-
Factory method to create an "OR" matcher for the given matchers.
- org.refcodes.servicebus - package org.refcodes.servicebus
P
- pauseServices() - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Pause services.
R
- registerLifecycleEventDispatcher(ObservableLifeCycleStatusAutomaton) - Method in class org.refcodes.servicebus.ServiceBusImpl
-
This method registers a life-cycle event listener which dispatches any incoming life-cycle events to the according dispatcher method below.
- removeService(ServiceDescriptor<S, SCTX>) - Method in interface org.refcodes.servicebus.ServiceDirectory
-
Unregisters a service to the service bus.
- removeService(ServiceDescriptor<S, SCTX>) - Method in class org.refcodes.servicebus.ServiceDirectoryImpl
-
Unregisters a service to the service bus.
- resumeServices() - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Resume services.
S
- Service<SMD> - Interface in org.refcodes.servicebus
-
Any
Service
to be made available by the service bus must implement this interface. - ServiceAccessor<S extends Service<?>> - Interface in org.refcodes.servicebus
-
Provides an accessor for a
Service
property. - ServiceAccessor.ServiceMutator<S extends Service<?>> - Interface in org.refcodes.servicebus
-
Provides a mutator for a
Service
property. - ServiceAccessor.ServiceProperty<S extends Service<?>> - Interface in org.refcodes.servicebus
-
Provides a
Service
property. - ServiceBus<S extends Service<?>> - Interface in org.refcodes.servicebus
- ServiceBusAccessor<S extends Service<?>> - Interface in org.refcodes.servicebus
-
Provides an accessor for a
ServiceBus
property. - ServiceBusAccessor.ServiceBusMutator<S extends Service<?>> - Interface in org.refcodes.servicebus
-
Provides a mutator for a
ServiceBus
property. - ServiceBusAccessor.ServiceBusProperty<S extends Service<?>> - Interface in org.refcodes.servicebus
-
Provides a
ServiceBus
property. - ServiceBusImpl<S extends Service<?>,SCTX extends ServiceContext<S>> - Class in org.refcodes.servicebus
-
The Class ServiceBusImpl.
- ServiceBusImpl(ServiceLookup<S, SCTX>, ObservableLifeCycleStatusAutomaton) - Constructor for class org.refcodes.servicebus.ServiceBusImpl
-
Constructs the subscriber part of the event bus.
- ServiceBusRuntimeException - Exception in org.refcodes.servicebus
-
Base exception for
ServiceBus
related runtime exceptions. - ServiceBusRuntimeException(String) - Constructor for exception org.refcodes.servicebus.ServiceBusRuntimeException
-
Instantiates a new service bus runtime exception.
- ServiceBusRuntimeException(String, String) - Constructor for exception org.refcodes.servicebus.ServiceBusRuntimeException
-
Instantiates a new service bus runtime exception.
- ServiceBusRuntimeException(String, Throwable) - Constructor for exception org.refcodes.servicebus.ServiceBusRuntimeException
-
Instantiates a new service bus runtime exception.
- ServiceBusRuntimeException(String, Throwable, String) - Constructor for exception org.refcodes.servicebus.ServiceBusRuntimeException
-
Instantiates a new service bus runtime exception.
- ServiceBusRuntimeException(Throwable) - Constructor for exception org.refcodes.servicebus.ServiceBusRuntimeException
-
Instantiates a new service bus runtime exception.
- ServiceBusRuntimeException(Throwable, String) - Constructor for exception org.refcodes.servicebus.ServiceBusRuntimeException
-
Instantiates a new service bus runtime exception.
- ServiceContext<S extends Service<?>> - Interface in org.refcodes.servicebus
-
The
ServiceContext
is a context passed (for example injected) to a service in order configure that service. - ServiceContextAccessor<SCTX> - Interface in org.refcodes.servicebus
-
Provides an accessor for
Service
's context property. - ServiceContextAccessor.ServiceContextMutator<SCTX> - Interface in org.refcodes.servicebus
-
Provides a mutator for
Service
's context property. - ServiceContextAccessor.ServiceContextProperty<SCTX> - Interface in org.refcodes.servicebus
-
Provides a
Service
's context property. - ServiceContextImpl<S extends Service<?>> - Class in org.refcodes.servicebus
-
The
ServiceContextImpl
implements theServiceContext
. - ServiceContextImpl(ServiceBus<S>, ObservableLifeCycleStatusAutomaton) - Constructor for class org.refcodes.servicebus.ServiceContextImpl
-
Constructs the
ServiceContextImpl
to be configured with the givenObservableLifeCycleStatusAutomaton
. - ServiceDescriptor<S extends Service<?>,SCTX> - Interface in org.refcodes.servicebus
-
The descriptor is used to describe a service including its configuration.
- ServiceDescriptorAccessor<SD extends ServiceDescriptor<?,?>> - Interface in org.refcodes.servicebus
-
Provides an accessor for a
ServiceDescriptor
property. - ServiceDescriptorAccessor.ServiceDescriptorMutator<SD extends ServiceDescriptor<?,?>> - Interface in org.refcodes.servicebus
-
Provides a mutator for a
ServiceDescriptor
property. - ServiceDescriptorAccessor.ServiceDescriptorProperty<SD extends ServiceDescriptor<?,?>> - Interface in org.refcodes.servicebus
-
Provides a
ServiceDescriptor
property. - ServiceDescriptorImpl<S extends Service<?>,SCTX> - Class in org.refcodes.servicebus
-
The
ServiceDescriptorImpl
implements theServiceDescriptor
. - ServiceDescriptorImpl(S, SCTX) - Constructor for class org.refcodes.servicebus.ServiceDescriptorImpl
-
Constructs the
ServiceDescriptorImpl
to be configured with the givenService
and the given context. - ServiceDirectory<S extends Service<?>,SCTX> - Interface in org.refcodes.servicebus
-
The service descriptor manager can be used to manage services and them configurations, i.e a system administering services in an my have access to a service descriptor manager.
- ServiceDirectoryImpl<S extends Service<?>,SCTX extends ServiceContext<S>> - Class in org.refcodes.servicebus
-
The
ServiceDirectoryImpl
implements theServiceDirectory
. - ServiceDirectoryImpl() - Constructor for class org.refcodes.servicebus.ServiceDirectoryImpl
- ServiceLookup<S extends Service<?>,SCTX> - Interface in org.refcodes.servicebus
-
The interface may be used internally by a system managing services.
- ServiceLookupImpl<S extends Service<?>,SCTX> - Class in org.refcodes.servicebus
-
The
ServiceLookupImpl
implements theServiceLookup
. - ServiceLookupImpl(CollectionFactory<Set<ServiceDescriptor<S, SCTX>>>) - Constructor for class org.refcodes.servicebus.ServiceLookupImpl
-
Creates a
ServiceLookupImpl
for the required type. - ServiceMatcher<S extends Service<?>> - Interface in org.refcodes.servicebus
-
This interface typifies the matcher interface for the usage with services.
- ServiceMatcherAccessor - Interface in org.refcodes.servicebus
-
Provides an accessor for a
ServiceMatcher
property. - ServiceMatcherAccessor.ServiceMatcherMutator - Interface in org.refcodes.servicebus
-
Provides a mutator for a
ServiceMatcher
property. - ServiceMatcherAccessor.ServiceMatcherProperty - Interface in org.refcodes.servicebus
-
Provides a
ServiceMatcher
property. - ServiceMatcherSugar - Class in org.refcodes.servicebus
-
Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for the
ServiceMatcher
related elements. - ServiceMatcherSugar() - Constructor for class org.refcodes.servicebus.ServiceMatcherSugar
- ServiceMetaData - Interface in org.refcodes.servicebus
-
Service Meta-Data describes criteria identifying a specific service within a pool of services.
- ServiceMetaDataImpl - Class in org.refcodes.servicebus
-
The
ServiceMetaDataImpl
implements theServiceMetaData
. - ServiceMetaDataImpl(String, String, String, String) - Constructor for class org.refcodes.servicebus.ServiceMetaDataImpl
-
Constructs a
ServiceMetaDataImpl
with the given attributes. - setGroupId(String) - Method in interface org.refcodes.servicebus.GroupIdAccessor.GroupIdMutator
-
Sets the group ID for the group ID property.
- setNameId(String) - Method in interface org.refcodes.servicebus.NameIdAccessor.NameIdMutator
-
Sets the name ID for the name ID property.
- setService(S) - Method in interface org.refcodes.servicebus.ServiceAccessor.ServiceMutator
-
Sets the
Service
property for the property. - setServiceBus(S) - Method in interface org.refcodes.servicebus.ServiceBusAccessor.ServiceBusMutator
-
Sets the
ServiceBus
property for the property. - setServiceContext(SCTX) - Method in interface org.refcodes.servicebus.ServiceContextAccessor.ServiceContextMutator
-
Sets the
Service
's context property for the property. - setServiceDescriptor(SD) - Method in interface org.refcodes.servicebus.ServiceDescriptorAccessor.ServiceDescriptorMutator
-
Sets the
Service
property from the property. - setServiceMatcher(ServiceMatcher<?>) - Method in interface org.refcodes.servicebus.ServiceMatcherAccessor.ServiceMatcherMutator
-
Sets the
ServiceMatcher
property for the property. - startServices() - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Start services.
- stopServices() - Method in class org.refcodes.servicebus.ServiceBusImpl
-
Stop services.
U
- UnknownServiceRuntimeException - Exception in org.refcodes.servicebus
-
This exception is thrown whenever a service, which cannot be distinguished from another service, is added to the service bus.
- UnknownServiceRuntimeException(Service<?>, String) - Constructor for exception org.refcodes.servicebus.UnknownServiceRuntimeException
-
Instantiates a new unknown service runtime exception.
- UnknownServiceRuntimeException(Service<?>, String, String) - Constructor for exception org.refcodes.servicebus.UnknownServiceRuntimeException
-
Instantiates a new unknown service runtime exception.
- UnknownServiceRuntimeException(Service<?>, String, Throwable) - Constructor for exception org.refcodes.servicebus.UnknownServiceRuntimeException
-
Instantiates a new unknown service runtime exception.
- UnknownServiceRuntimeException(Service<?>, String, Throwable, String) - Constructor for exception org.refcodes.servicebus.UnknownServiceRuntimeException
-
Instantiates a new unknown service runtime exception.
- UnknownServiceRuntimeException(Service<?>, Throwable) - Constructor for exception org.refcodes.servicebus.UnknownServiceRuntimeException
-
Instantiates a new unknown service runtime exception.
- UnknownServiceRuntimeException(Service<?>, Throwable, String) - Constructor for exception org.refcodes.servicebus.UnknownServiceRuntimeException
-
Instantiates a new unknown service runtime exception.