public class OptionalServicesConfigurator
extends java.lang.Object
| Constructor and Description |
|---|
OptionalServicesConfigurator(Module module,
java.net.URL servicesURL,
java.net.URL typesURL)
Constructor.
|
OptionalServicesConfigurator(Module module,
java.net.URL servicesURL,
java.net.URL typesURL,
boolean isStrict)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NamespaceKey |
addService(NamespaceKey key,
boolean isProvider)
Add a Service to check.
|
NamespaceKey |
addService(NamespaceKey key,
boolean isProvider,
boolean isStrict)
Add a Service to check.
|
NamespaceKey |
addService(java.lang.String name,
boolean isProvider)
Add a Service to check.
|
NamespaceKey |
addService(java.lang.String name,
boolean isProvider,
boolean isStrict)
Add a Service to check.
|
NamespaceKey |
addService(java.lang.String uri,
java.lang.String name,
boolean isProvider)
Add a Service to check.
|
NamespaceKey |
addService(java.lang.String uri,
java.lang.String name,
boolean isProvider,
boolean isStrict)
Add a Service to check.
|
ServiceInstance<?,?> |
getService(NamespaceKey key)
Return a checked Service.
|
ServiceInstance<?,?> |
getService(java.lang.String name)
Return a checked Service.
|
ServiceInstance<?,?> |
getService(java.lang.String uri,
java.lang.String name)
Return a Service.
|
boolean |
isOptionalService(NamespaceKey key)
Return true is a Service is in the map of checked services.
|
boolean |
isSilent()
Return true if the errors should not be redirected.
|
void |
setSilent(boolean isSilent)
Set if the errors should not be redirected.
|
void |
setup()
Setup the configurator.
|
public OptionalServicesConfigurator(Module module, java.net.URL servicesURL, java.net.URL typesURL)
module - the moduleservicesURL - the reference services URLtypesURL - the reference types URLpublic OptionalServicesConfigurator(Module module, java.net.URL servicesURL, java.net.URL typesURL, boolean isStrict)
module - the moduleservicesURL - the reference services URLtypesURL - the reference types URLisStrict - true if it is not allowed to have provided datas in the template which are not found in the definitionpublic void setSilent(boolean isSilent)
isSilent - true if the errors should not be redirectedpublic boolean isSilent()
public NamespaceKey addService(java.lang.String name, boolean isProvider)
name - the service nameisProvider - true if the service must be a providerpublic NamespaceKey addService(java.lang.String name, boolean isProvider, boolean isStrict)
name - the service nameisProvider - true if the service must be a providerisStrict - true if it is allowed to have provided datas in the template which are not found in the
definitionpublic NamespaceKey addService(java.lang.String uri, java.lang.String name, boolean isProvider)
uri - the service uriname - the service nameisProvider - true if the service must be a providerpublic NamespaceKey addService(java.lang.String uri, java.lang.String name, boolean isProvider, boolean isStrict)
uri - the service uriname - the service nameisProvider - true if the service must be a providerisStrict - true if it is allowed to have provided datas in the template which are not found in the
definitionpublic NamespaceKey addService(NamespaceKey key, boolean isProvider)
key - the service keyisProvider - true if the service must be a providerpublic NamespaceKey addService(NamespaceKey key, boolean isProvider, boolean isStrict)
key - the service keyisProvider - true if the service must be a providerisStrict - true if it is allowed to have provided datas in the template which are not found in the
definitionpublic ServiceInstance<?,?> getService(java.lang.String name)
name - the Service namepublic ServiceInstance<?,?> getService(java.lang.String uri, java.lang.String name)
uri - the service uriname - the Service namepublic ServiceInstance<?,?> getService(NamespaceKey key)
key - the service keypublic boolean isOptionalService(NamespaceKey key)
addService(org.da.protoframework.model.namespace.NamespaceKey, boolean).key - the Service keypublic void setup()
getService(java.lang.String) method and
other associated methods.Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence