Index

A D G H I L N O P R S U 
All Classes and Interfaces|All Packages|Serialized Form

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 Class 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 class org.refcodes.servicebus.AmbiguousServiceRuntimeException
Instantiates a new ambiguous service runtime exception.
AmbiguousServiceRuntimeException(ServiceMatcher<?>, String, String) - Constructor for exception class org.refcodes.servicebus.AmbiguousServiceRuntimeException
Instantiates a new ambiguous service runtime exception.
AmbiguousServiceRuntimeException(ServiceMatcher<?>, String, Throwable) - Constructor for exception class org.refcodes.servicebus.AmbiguousServiceRuntimeException
Instantiates a new ambiguous service runtime exception.
AmbiguousServiceRuntimeException(ServiceMatcher<?>, String, Throwable, String) - Constructor for exception class org.refcodes.servicebus.AmbiguousServiceRuntimeException
Instantiates a new ambiguous service runtime exception.
AmbiguousServiceRuntimeException(ServiceMatcher<?>, Throwable) - Constructor for exception class org.refcodes.servicebus.AmbiguousServiceRuntimeException
Instantiates a new ambiguous service runtime exception.
AmbiguousServiceRuntimeException(ServiceMatcher<?>, Throwable, String) - Constructor for exception class 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.SimpleServiceBus
Destroy services.
DuplicateServiceRuntimeException - Exception Class 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 class org.refcodes.servicebus.DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.
DuplicateServiceRuntimeException(Service<?>, String, String) - Constructor for exception class org.refcodes.servicebus.DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.
DuplicateServiceRuntimeException(Service<?>, String, Throwable) - Constructor for exception class org.refcodes.servicebus.DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.
DuplicateServiceRuntimeException(Service<?>, String, Throwable, String) - Constructor for exception class org.refcodes.servicebus.DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.
DuplicateServiceRuntimeException(Service<?>, Throwable) - Constructor for exception class org.refcodes.servicebus.DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.
DuplicateServiceRuntimeException(Service<?>, Throwable, String) - Constructor for exception class org.refcodes.servicebus.DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.

G

getGroupId() - Method in interface org.refcodes.servicebus.GroupIdAccessor
Retrieves the group TID from the group TID property.
getGroupId() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
Retrieves the group TID from the group TID property.
getName() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
getNameId() - Method in interface org.refcodes.servicebus.NameIdAccessor
Retrieves the name TID from the name TID property.
getNameId() - Method in class org.refcodes.servicebus.ServiceMetaDataImpl
Retrieves the name TID from the name TID 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 exception class org.refcodes.servicebus.UnknownServiceRuntimeException
Gets the service.
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 the ServiceLookup.
getServiceDescriptors() - Method in interface org.refcodes.servicebus.ServiceLookup
Returns a collection containing the ServiceDescriptor instances known by the ServiceLookup.
getServiceDescriptors() - Method in class org.refcodes.servicebus.ServiceLookupImpl
Returns a collection containing the ServiceDescriptor instances known by the ServiceLookup.
getServiceMatcher() - Method in exception class org.refcodes.servicebus.AmbiguousServiceRuntimeException
Gets the service matcher.
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 TID property.
GroupIdAccessor.GroupIdMutator - Interface in org.refcodes.servicebus
Provides a mutator for a group TID property.
GroupIdAccessor.GroupIdProperty - Interface in org.refcodes.servicebus
Provides a group TID 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 single Service to be looked up.
hasService(ServiceMatcher<S>) - Method in class org.refcodes.servicebus.SimpleServiceBus
Determines whether the given ServiceMatcher will result in a single Service to be looked up.

I

initializeServices() - Method in class org.refcodes.servicebus.SimpleServiceBus
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

letGroupId(String) - Method in interface org.refcodes.servicebus.GroupIdAccessor.GroupIdProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given String (setter) as of GroupIdAccessor.GroupIdMutator.setGroupId(String) and returns the very same value (getter).
letNameId(String) - Method in interface org.refcodes.servicebus.NameIdAccessor.NameIdProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given String (setter) as of NameIdAccessor.NameIdMutator.setNameId(String) and returns the very same value (getter).
letService(S) - Method in interface org.refcodes.servicebus.ServiceAccessor.ServiceProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of ServiceAccessor.ServiceMutator.setService(Service) and returns the very same value (getter).
letServiceBus(S) - Method in interface org.refcodes.servicebus.ServiceBusAccessor.ServiceBusProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of ServiceBusAccessor.ServiceBusMutator.setServiceBus(Service) and returns the very same value (getter).
letServiceContext(SCTX) - Method in interface org.refcodes.servicebus.ServiceContextAccessor.ServiceContextProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of ServiceContextAccessor.ServiceContextMutator.setServiceContext(Object) and returns the very same value (getter).
letServiceDescriptor(SD) - Method in interface org.refcodes.servicebus.ServiceDescriptorAccessor.ServiceDescriptorProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of ServiceDescriptorAccessor.ServiceDescriptorMutator.setServiceDescriptor(ServiceDescriptor) and returns the very same value (getter).
letServiceMatcher(ServiceMatcher<?>) - Method in interface org.refcodes.servicebus.ServiceMatcherAccessor.ServiceMatcherProperty
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given ServiceMatcher (setter) as of ServiceMatcherAccessor.ServiceMatcherMutator.setServiceMatcher(ServiceMatcher) and returns the very same value (getter).
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.SimpleServiceBus
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 TID property.
NameIdAccessor.NameIdMutator - Interface in org.refcodes.servicebus
Provides a mutator for a name TID property.
NameIdAccessor.NameIdProperty - Interface in org.refcodes.servicebus
Provides a name TID property.
NoMatchingServiceRuntimeException - Exception Class 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 class org.refcodes.servicebus.NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.
NoMatchingServiceRuntimeException(ServiceMatcher<?>, String, String) - Constructor for exception class org.refcodes.servicebus.NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.
NoMatchingServiceRuntimeException(ServiceMatcher<?>, String, Throwable) - Constructor for exception class org.refcodes.servicebus.NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.
NoMatchingServiceRuntimeException(ServiceMatcher<?>, String, Throwable, String) - Constructor for exception class org.refcodes.servicebus.NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.
NoMatchingServiceRuntimeException(ServiceMatcher<?>, Throwable) - Constructor for exception class org.refcodes.servicebus.NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.
NoMatchingServiceRuntimeException(ServiceMatcher<?>, Throwable, String) - Constructor for exception class org.refcodes.servicebus.NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.

O

onLifecycleEvent(LifecycleRequestEvent) - Method in class org.refcodes.servicebus.SimpleServiceBus
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 - module org.refcodes.servicebus
 
org.refcodes.servicebus - package org.refcodes.servicebus
 

P

pauseServices() - Method in class org.refcodes.servicebus.SimpleServiceBus
Pause services.

R

registerLifecycleEventDispatcher(ObservableLifecycleStatusAutomaton) - Method in class org.refcodes.servicebus.SimpleServiceBus
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.SimpleServiceBus
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
The ServiceBus defines the functionality for Service instances to look up other Service instances.
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.
ServiceBusRuntimeException - Exception Class in org.refcodes.servicebus
Base exception for ServiceBus related runtime exceptions.
ServiceBusRuntimeException(String) - Constructor for exception class org.refcodes.servicebus.ServiceBusRuntimeException
Instantiates a new service bus runtime exception.
ServiceBusRuntimeException(String, String) - Constructor for exception class org.refcodes.servicebus.ServiceBusRuntimeException
Instantiates a new service bus runtime exception.
ServiceBusRuntimeException(String, Throwable) - Constructor for exception class org.refcodes.servicebus.ServiceBusRuntimeException
Instantiates a new service bus runtime exception.
ServiceBusRuntimeException(String, Throwable, String) - Constructor for exception class org.refcodes.servicebus.ServiceBusRuntimeException
Instantiates a new service bus runtime exception.
ServiceBusRuntimeException(Throwable) - Constructor for exception class org.refcodes.servicebus.ServiceBusRuntimeException
Instantiates a new service bus runtime exception.
ServiceBusRuntimeException(Throwable, String) - Constructor for exception class 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
ServiceContextImpl(ServiceBus<S>, ObservableLifecycleStatusAutomaton) - Constructor for class org.refcodes.servicebus.ServiceContextImpl
Constructs the ServiceContextImpl to be configured with the given ObservableLifecycleStatusAutomaton.
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
ServiceDescriptorImpl(S, SCTX) - Constructor for class org.refcodes.servicebus.ServiceDescriptorImpl
Constructs the ServiceDescriptorImpl to be configured with the given Service 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
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 the ServiceLookup.
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
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 TID for the group TID property.
setNameId(String) - Method in interface org.refcodes.servicebus.NameIdAccessor.NameIdMutator
Sets the name TID for the name TID 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.
SimpleServiceBus<S extends Service<?>,CTX extends ServiceContext<S>> - Class in org.refcodes.servicebus
The SimpleServiceBus is a basic implementation of the ServiceBus interface.
SimpleServiceBus(ServiceLookup<S, CTX>, ObservableLifecycleStatusAutomaton) - Constructor for class org.refcodes.servicebus.SimpleServiceBus
Constructs the subscriber part of the event bus.
startServices() - Method in class org.refcodes.servicebus.SimpleServiceBus
Start services.
stopServices() - Method in class org.refcodes.servicebus.SimpleServiceBus
Stop services.

U

UnknownServiceRuntimeException - Exception Class 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 class org.refcodes.servicebus.UnknownServiceRuntimeException
Instantiates a new unknown service runtime exception.
UnknownServiceRuntimeException(Service<?>, String, String) - Constructor for exception class org.refcodes.servicebus.UnknownServiceRuntimeException
Instantiates a new unknown service runtime exception.
UnknownServiceRuntimeException(Service<?>, String, Throwable) - Constructor for exception class org.refcodes.servicebus.UnknownServiceRuntimeException
Instantiates a new unknown service runtime exception.
UnknownServiceRuntimeException(Service<?>, String, Throwable, String) - Constructor for exception class org.refcodes.servicebus.UnknownServiceRuntimeException
Instantiates a new unknown service runtime exception.
UnknownServiceRuntimeException(Service<?>, Throwable) - Constructor for exception class org.refcodes.servicebus.UnknownServiceRuntimeException
Instantiates a new unknown service runtime exception.
UnknownServiceRuntimeException(Service<?>, Throwable, String) - Constructor for exception class org.refcodes.servicebus.UnknownServiceRuntimeException
Instantiates a new unknown service runtime exception.
A D G H I L N O P R S U 
All Classes and Interfaces|All Packages|Serialized Form