Class SpringBeanServiceDef

    • Constructor Summary

      Constructors 
      Constructor Description
      SpringBeanServiceDef​(java.lang.String beanName, org.springframework.context.ApplicationContext context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ObjectCreator createServiceCreator​(ServiceBuilderResources resources)
      Returns an ObjectCreator that can create the core service implementation.
      java.util.Set<java.lang.Class> getMarkers()
      Returns an optional set of marker annotations.
      java.lang.String getServiceId()
      Returns the service id, derived from the method name or the unqualified service interface name.
      java.lang.Class getServiceInterface()
      Returns the service interface associated with this service.
      java.lang.String getServiceScope()
      Returns the lifecycle defined for the service.
      boolean isEagerLoad()
      Returns true if the service should be eagerly loaded at Registry startup.
      boolean isPreventDecoration()
      Returns true if the service should not be decorated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringBeanServiceDef

        public SpringBeanServiceDef​(java.lang.String beanName,
                                    org.springframework.context.ApplicationContext context)
    • Method Detail

      • getServiceId

        public java.lang.String getServiceId()
        Description copied from interface: ServiceDef
        Returns the service id, derived from the method name or the unqualified service interface name. Service ids must be unique among all services in all modules. Service ids are used in a heavy handed way to support ultimate disambiguation, but their primary purpose is to support service contribution methods.
        Specified by:
        getServiceId in interface ServiceDef
      • getMarkers

        public java.util.Set<java.lang.Class> getMarkers()
        Description copied from interface: ServiceDef
        Returns an optional set of marker annotations. Marker annotations are used to disambiguate services; the combination of a marker annotation and a service type is expected to be unique. The annotation is placed on the field or method/constructor parameter and the service is located by combining the marker with service type (the parameter or field type).
        Specified by:
        getMarkers in interface ServiceDef
        Returns:
        the marker annotations for the service (possibly empty), including any default marker annotations from the containing module.
      • getServiceInterface

        public java.lang.Class getServiceInterface()
        Description copied from interface: ServiceDef
        Returns the service interface associated with this service. This is the interface exposed to the outside world, as well as the one used to build proxies. In cases where the service is not defined in terms of an interface, this will return the actual implementation class of the service. Services without a true service interface are not proxied, which has a number of ramifications (such as losing lazy instantiation capabilities and other more interesting lifecycles).
        Specified by:
        getServiceInterface in interface ServiceDef