Class ProvidedServiceInfo
java.lang.Object
jadex.providedservice.impl.service.ProvidedServiceInfo
Info for provided services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProvidedServiceImplementation
The service implementation.protected String
The name (used for referencing).protected List
<jadex.common.UnparsedExpression> The service properties.protected ServiceScope
The scope.protected jadex.common.UnparsedExpression
The scope expression (if any).protected Security
The security settings (empty roles if unset).protected boolean
Flag if it is a system service.protected jadex.common.ClassInfo
The type.protected String
The service interface type as string. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new service info.ProvidedServiceInfo
(String name, jadex.common.ClassInfo type, ProvidedServiceImplementation implementation) Create a new service info.ProvidedServiceInfo
(String name, jadex.common.ClassInfo type, ProvidedServiceImplementation implementation, ServiceScope scope, jadex.common.UnparsedExpression scopeexpression, Security security, List<jadex.common.UnparsedExpression> properties, boolean systemservice) Create a new service info.ProvidedServiceInfo
(String name, Class<?> type, ProvidedServiceImplementation implementation) Create a new service info.ProvidedServiceInfo
(String name, Class<?> type, ProvidedServiceImplementation implementation, ServiceScope scope, jadex.common.UnparsedExpression scopeexpression, Security security, List<jadex.common.UnparsedExpression> properties) Create a new service info. -
Method Summary
Modifier and TypeMethodDescriptionGet the implementation.getName()
Get the name.List
<jadex.common.UnparsedExpression> getScope()
Get the scope.jadex.common.UnparsedExpression
Get the scope expression.Get the security settings.jadex.common.ClassInfo
getType()
Get the type.boolean
Get the systemservice.void
setImplementation
(ProvidedServiceImplementation implementation) Set the implementation.void
Set the name.void
setProperties
(List<jadex.common.UnparsedExpression> properties) void
setScope
(ServiceScope scope) Set the scope.void
setScopeExpression
(jadex.common.UnparsedExpression expression) Set the scope expression.void
setSecurity
(Security security) Set the security settings.void
setSystemService
(boolean systemservice) Set the systemservice.void
setType
(jadex.common.ClassInfo type) Set the type.toString()
Get the string representation.
-
Field Details
-
name
The name (used for referencing). -
typename
The service interface type as string. -
type
protected jadex.common.ClassInfo typeThe type. -
implementation
The service implementation. -
scope
The scope. -
scopeexpression
protected jadex.common.UnparsedExpression scopeexpressionThe scope expression (if any). -
security
The security settings (empty roles if unset). -
properties
The service properties. -
systemservice
protected boolean systemserviceFlag if it is a system service.
-
-
Constructor Details
-
ProvidedServiceInfo
public ProvidedServiceInfo()Create a new service info. -
ProvidedServiceInfo
public ProvidedServiceInfo(String name, jadex.common.ClassInfo type, ProvidedServiceImplementation implementation) Create a new service info. -
ProvidedServiceInfo
public ProvidedServiceInfo(String name, Class<?> type, ProvidedServiceImplementation implementation) Create a new service info. -
ProvidedServiceInfo
public ProvidedServiceInfo(String name, Class<?> type, ProvidedServiceImplementation implementation, ServiceScope scope, jadex.common.UnparsedExpression scopeexpression, Security security, List<jadex.common.UnparsedExpression> properties) Create a new service info. -
ProvidedServiceInfo
public ProvidedServiceInfo(String name, jadex.common.ClassInfo type, ProvidedServiceImplementation implementation, ServiceScope scope, jadex.common.UnparsedExpression scopeexpression, Security security, List<jadex.common.UnparsedExpression> properties, boolean systemservice) Create a new service info.
-
-
Method Details
-
getName
Get the name.- Returns:
- the name.
-
setName
Set the name.- Parameters:
name
- The name to set.
-
getType
public jadex.common.ClassInfo getType()Get the type.- Returns:
- The type.
-
setType
public void setType(jadex.common.ClassInfo type) Set the type.- Parameters:
type
- The type to set.
-
getImplementation
Get the implementation.- Returns:
- The implementation.
-
setImplementation
Set the implementation.- Parameters:
implementation
- The implementation to set.
-
getProperties
- Returns:
- the properties
-
setProperties
- Parameters:
properties
- the properties to set
-
getScopeExpression
public jadex.common.UnparsedExpression getScopeExpression()Get the scope expression.- Returns:
- The scope expression.
-
setScopeExpression
public void setScopeExpression(jadex.common.UnparsedExpression expression) Set the scope expression.- Parameters:
expression
- The scope expression to set.
-
getScope
Get the scope.- Returns:
- The scope.
-
setScope
Set the scope.- Parameters:
scope
- The scope to set.
-
getSecurity
Get the security settings.- Returns:
- The security settings.
-
setSecurity
Set the security settings.- Parameters:
security
- The new security settings.
-
isSystemService
public boolean isSystemService()Get the systemservice.- Returns:
- The systemservice
-
setSystemService
public void setSystemService(boolean systemservice) Set the systemservice.- Parameters:
systemservice
- The systemservice to set
-
toString
Get the string representation.
-