Package jadex.bridge.service
Class ProvidedServiceInfo
- java.lang.Object
-
- jadex.bridge.service.ProvidedServiceInfo
-
public class ProvidedServiceInfo extends java.lang.ObjectInfo for provided services.
-
-
Field Summary
Fields Modifier and Type Field Description protected ProvidedServiceImplementationimplementationThe service implementation.protected java.lang.StringnameThe name (used for referencing).protected java.util.List<UnparsedExpression>propertiesThe service properties.protected PublishInfopublishPublish information.protected ServiceScopescopeThe scope.protected UnparsedExpressionscopeexpressionThe scope expression (if any).protected SecuritysecurityThe security settings (empty roles if unset).protected booleansystemserviceFlag if it is a system service.protected ClassInfotypeThe type.protected java.lang.StringtypenameThe service interface type as string.
-
Constructor Summary
Constructors Constructor Description ProvidedServiceInfo()Create a new service info.ProvidedServiceInfo(java.lang.String name, ClassInfo type, ProvidedServiceImplementation implementation)Create a new service info.ProvidedServiceInfo(java.lang.String name, ClassInfo type, ProvidedServiceImplementation implementation, ServiceScope scope, UnparsedExpression scopeexpression, Security security, PublishInfo publish, java.util.List<UnparsedExpression> properties, boolean systemservice)Create a new service info.ProvidedServiceInfo(java.lang.String name, java.lang.Class<?> type, ProvidedServiceImplementation implementation)Create a new service info.ProvidedServiceInfo(java.lang.String name, java.lang.Class<?> type, ProvidedServiceImplementation implementation, ServiceScope scope, UnparsedExpression scopeexpression, Security security, PublishInfo publish, java.util.List<UnparsedExpression> properties)Create a new service info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvidedServiceImplementationgetImplementation()Get the implementation.java.lang.StringgetName()Get the name.java.util.List<UnparsedExpression>getProperties()PublishInfogetPublish()Get the publish.ServiceScopegetScope()Get the scope.UnparsedExpressiongetScopeExpression()Get the scope expression.SecuritygetSecurity()Get the security settings.ClassInfogetType()Get the type.booleanisSystemService()Get the systemservice.voidsetImplementation(ProvidedServiceImplementation implementation)Set the implementation.voidsetName(java.lang.String name)Set the name.voidsetProperties(java.util.List<UnparsedExpression> properties)voidsetPublish(PublishInfo publish)Set the publish.voidsetScope(ServiceScope scope)Set the scope.voidsetScopeExpression(UnparsedExpression expression)Set the scope expression.voidsetSecurity(Security security)Set the security settings.voidsetSystemService(boolean systemservice)Set the systemservice.voidsetType(ClassInfo type)Set the type.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
name
protected java.lang.String name
The name (used for referencing).
-
typename
protected java.lang.String typename
The service interface type as string.
-
type
protected ClassInfo type
The type.
-
implementation
protected ProvidedServiceImplementation implementation
The service implementation.
-
publish
protected PublishInfo publish
Publish information.
-
scope
protected ServiceScope scope
The scope.
-
scopeexpression
protected UnparsedExpression scopeexpression
The scope expression (if any).
-
security
protected Security security
The security settings (empty roles if unset).
-
properties
protected java.util.List<UnparsedExpression> properties
The service properties.
-
systemservice
protected boolean systemservice
Flag if it is a system service.
-
-
Constructor Detail
-
ProvidedServiceInfo
public ProvidedServiceInfo()
Create a new service info.
-
ProvidedServiceInfo
public ProvidedServiceInfo(java.lang.String name, ClassInfo type, ProvidedServiceImplementation implementation)Create a new service info.
-
ProvidedServiceInfo
public ProvidedServiceInfo(java.lang.String name, java.lang.Class<?> type, ProvidedServiceImplementation implementation)Create a new service info.
-
ProvidedServiceInfo
public ProvidedServiceInfo(java.lang.String name, java.lang.Class<?> type, ProvidedServiceImplementation implementation, ServiceScope scope, UnparsedExpression scopeexpression, Security security, PublishInfo publish, java.util.List<UnparsedExpression> properties)Create a new service info.
-
ProvidedServiceInfo
public ProvidedServiceInfo(java.lang.String name, ClassInfo type, ProvidedServiceImplementation implementation, ServiceScope scope, UnparsedExpression scopeexpression, Security security, PublishInfo publish, java.util.List<UnparsedExpression> properties, boolean systemservice)Create a new service info.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- the name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name- The name to set.
-
getType
public ClassInfo getType()
Get the type.- Returns:
- The type.
-
setType
public void setType(ClassInfo type)
Set the type.- Parameters:
type- The type to set.
-
getImplementation
public ProvidedServiceImplementation getImplementation()
Get the implementation.- Returns:
- The implementation.
-
setImplementation
public void setImplementation(ProvidedServiceImplementation implementation)
Set the implementation.- Parameters:
implementation- The implementation to set.
-
getPublish
public PublishInfo getPublish()
Get the publish.- Returns:
- The publish.
-
setPublish
public void setPublish(PublishInfo publish)
Set the publish.- Parameters:
publish- The publish to set.
-
getProperties
public java.util.List<UnparsedExpression> getProperties()
- Returns:
- the properties
-
setProperties
public void setProperties(java.util.List<UnparsedExpression> properties)
- Parameters:
properties- the properties to set
-
getScopeExpression
public UnparsedExpression getScopeExpression()
Get the scope expression.- Returns:
- The scope expression.
-
setScopeExpression
public void setScopeExpression(UnparsedExpression expression)
Set the scope expression.- Parameters:
expression- The scope expression to set.
-
getScope
public ServiceScope getScope()
Get the scope.- Returns:
- The scope.
-
setScope
public void setScope(ServiceScope scope)
Set the scope.- Parameters:
scope- The scope to set.
-
getSecurity
public Security getSecurity()
Get the security settings.- Returns:
- The security settings.
-
setSecurity
public void setSecurity(Security security)
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
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-