Class ProvidedServiceInfo
java.lang.Object
jadex.providedservice.impl.service.ProvidedServiceInfo
Info for provided services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProvidedServiceImplementationThe service implementation.protected StringThe name (used for referencing).protected List<jadex.common.UnparsedExpression> The service properties.protected ServiceScopeThe scope.protected jadex.common.UnparsedExpressionThe scope expression (if any).protected SecurityThe security settings (empty roles if unset).protected booleanFlag if it is a system service.protected jadex.common.ClassInfoThe type.protected StringThe 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.UnparsedExpressionGet the scope expression.Get the security settings.jadex.common.ClassInfogetType()Get the type.booleanGet the systemservice.voidsetImplementation(ProvidedServiceImplementation implementation) Set the implementation.voidSet the name.voidsetProperties(List<jadex.common.UnparsedExpression> properties) voidsetScope(ServiceScope scope) Set the scope.voidsetScopeExpression(jadex.common.UnparsedExpression expression) Set the scope expression.voidsetSecurity(Security security) Set the security settings.voidsetSystemService(boolean systemservice) Set the systemservice.voidsetType(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.
-