Modifier and Type | Method and Description |
---|---|
default ServiceCreationConfiguration<T,?> |
build(R representation)
Construct a new configuration from the given detached representation.
|
default boolean |
compatibleWith(ServiceCreationConfiguration<?,?> other)
Returns true if this configuration can co-exist with
other in the same manager configuration. |
default R |
derive()
Derive a detached representation from this configuration
|
java.lang.Class<T> |
getServiceType()
Indicates which service consumes this configuration at creation.
|
java.lang.Class<T> getServiceType()
default R derive() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the configuration has no representationdefault ServiceCreationConfiguration<T,?> build(R representation) throws java.lang.UnsupportedOperationException
representation
- a detached representationjava.lang.UnsupportedOperationException
- if the configuration has no representationdefault boolean compatibleWith(ServiceCreationConfiguration<?,?> other)
other
in the same manager configuration.
The default implementation of compatibleWith
(as used by many of the implementations) considers any
instance of the same type (or a sub-type) to be incompatible with this instance.
other
- other service creation configurationtrue
if the two configurations are compatible