public class SpringBeanServiceDef extends Object implements ServiceDef2
Constructor and Description |
---|
SpringBeanServiceDef(String beanName,
org.springframework.context.ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
ObjectCreator |
createServiceCreator(ServiceBuilderResources resources)
Returns an
ObjectCreator that can create the core service implementation. |
Set<Class> |
getMarkers()
Returns an optional set of marker annotations.
|
String |
getServiceId()
Returns the service id, derived from the method name or the unqualified service interface name.
|
Class |
getServiceInterface()
Returns the service interface associated with this service.
|
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.
|
public SpringBeanServiceDef(String beanName, org.springframework.context.ApplicationContext context)
public boolean isPreventDecoration()
ServiceDef2
PreventServiceDecoration
annotation is present.isPreventDecoration
in interface ServiceDef2
public ObjectCreator createServiceCreator(ServiceBuilderResources resources)
ServiceDef
ObjectCreator
that can create the core service implementation.createServiceCreator
in interface ServiceDef
resources
- used to resolve dependencies of the service, or access its configurationpublic String getServiceId()
ServiceDef
getServiceId
in interface ServiceDef
public Set<Class> getMarkers()
ServiceDef
getMarkers
in interface ServiceDef
public Class getServiceInterface()
ServiceDef
getServiceInterface
in interface ServiceDef
public String getServiceScope()
ServiceDef
Scope
annotation to the service builder method for the service.
Services that are not proxied will ignore their scope; such services are always treated as singletons.getServiceScope
in interface ServiceDef
ServiceLifecycle
,
ServiceLifecycleSource
public boolean isEagerLoad()
ServiceDef
isEagerLoad
in interface ServiceDef
EagerLoad
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.