Class RequiredServiceInfo


  • public class RequiredServiceInfo
    extends java.lang.Object
    Struct for information about a required service.
    • Field Detail

      • SCOPE_APPLICATION_NETWORK

        public static final ServiceScope SCOPE_APPLICATION_NETWORK
        Deprecated.
        Use ServiceScope instead
      • SCOPE_APPLICATION_GLOBAL

        public static final ServiceScope SCOPE_APPLICATION_GLOBAL
        Deprecated.
        Use ServiceScope instead
      • UNDEFINED

        public static final int UNDEFINED
        Constant for multiplicity undefined.
        See Also:
        Constant Field Values
      • name

        protected java.lang.String name
        The component internal service name.
      • tags

        protected java.util.Collection<java.lang.String> tags
        The service tags to search for.
      • min

        protected int min
        The min number of services.
      • max

        protected int max
        The max number of services.
      • interceptors

        protected java.util.List<UnparsedExpression> interceptors
        The list of interceptors.
      • nfproperties

        protected java.util.List<NFRPropertyInfo> nfproperties
        The nf props. This is not for search but adds NF props
    • Constructor Detail

      • RequiredServiceInfo

        public RequiredServiceInfo()
        Create a new service info.
      • RequiredServiceInfo

        public RequiredServiceInfo​(java.lang.String name,
                                   java.lang.Class<?> type)
        Create a new service info.
      • RequiredServiceInfo

        public RequiredServiceInfo​(java.lang.Class<?> type)
        Create a new service info.
      • RequiredServiceInfo

        public RequiredServiceInfo​(java.lang.String name,
                                   java.lang.Class<?> type,
                                   ServiceScope scope)
        Create a new service info.
      • RequiredServiceInfo

        public RequiredServiceInfo​(java.lang.String name,
                                   java.lang.Class<?> type,
                                   int min,
                                   int max,
                                   RequiredServiceBinding binding,
                                   java.util.List<NFRPropertyInfo> nfprops,
                                   java.util.Collection<java.lang.String> tags)
        Create a new service info.
      • RequiredServiceInfo

        public RequiredServiceInfo​(java.lang.String name,
                                   ClassInfo type,
                                   int min,
                                   int max,
                                   RequiredServiceBinding binding,
                                   java.util.List<NFRPropertyInfo> nfprops,
                                   java.util.Collection<java.lang.String> tags)
        Create a new service info.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name.
        Returns:
        the name.
      • setName

        public RequiredServiceInfo setName​(java.lang.String name)
        Set the name.
        Parameters:
        name - The name to set.
      • getType

        public ClassInfo getType()
        Get the type.
        Returns:
        The type.
      • getMax

        public int getMax()
        Get the max number of services.
        Returns:
        The max number.
      • setMax

        public RequiredServiceInfo setMax​(int max)
        Set the max number of services.
        Parameters:
        max - The max number to set.
      • getMin

        public int getMin()
        Get the minimum number of services.
        Returns:
        The min number of services.
      • setMin

        public RequiredServiceInfo setMin​(int min)
        Set the min number of services.
        Parameters:
        min - The min number to set.
      • getDefaultBinding

        public RequiredServiceBinding getDefaultBinding()
        Get the binding.
        Returns:
        the binding.
      • getInterceptors

        public UnparsedExpression[] getInterceptors()
        Get the interceptors.
        Returns:
        All interceptors.
      • getNFRProperties

        public java.util.List<NFRPropertyInfo> getNFRProperties()
        Get the nfproperties.
        Returns:
        The nfproperties.
      • setNFRProperties

        public RequiredServiceInfo setNFRProperties​(java.util.List<NFRPropertyInfo> nfproperties)
        Set the nfproperties.
        Parameters:
        nfproperties - The nfproperties to set.
      • getTags

        public java.util.Collection<java.lang.String> getTags()
        Get the tags.
        Returns:
        the tags
      • setTags

        public RequiredServiceInfo setTags​(java.util.Collection<java.lang.String> tags)
        Set the tags.
        Parameters:
        tags - The tags to set