public class ServiceDefImpl extends Object implements ServiceDef3
Modifier and Type | Method and Description |
---|---|
ObjectCreator |
createServiceCreator(ServiceBuilderResources resources)
Returns an
ObjectCreator that can create the core service implementation. |
boolean |
equals(Object obj) |
AnnotationProvider |
getClassAnnotationProvider()
Returns a provider for annotations on the service class and interface.
|
Set<Class> |
getMarkers()
Returns an optional set of marker annotations.
|
AnnotationProvider |
getMethodAnnotationProvider(String methodName,
Class... argumentTypes)
Returns a provider for annotations of a method of the class.
|
String |
getServiceId()
Returns the service id, derived from the method name or the unqualified service interface name.
|
Class |
getServiceImplementation()
Returns the service implementation associated with this service.
|
Class |
getServiceInterface()
Returns the service interface associated with this service.
|
String |
getServiceScope()
Returns the lifecycle defined for the service.
|
int |
hashCode() |
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.
|
String |
toString() |
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 Class getServiceInterface()
ServiceDef
getServiceInterface
in interface ServiceDef
public Class getServiceImplementation()
ServiceDef3
getServiceImplementation
in interface ServiceDef3
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
public Set<Class> getMarkers()
ServiceDef
getMarkers
in interface ServiceDef
public boolean isPreventDecoration()
ServiceDef2
PreventServiceDecoration
annotation is present.isPreventDecoration
in interface ServiceDef2
public AnnotationProvider getClassAnnotationProvider()
AnnotationAccess
getClassAnnotationProvider
in interface AnnotationAccess
public AnnotationProvider getMethodAnnotationProvider(String methodName, Class... argumentTypes)
AnnotationAccess
getMethodAnnotationProvider
in interface AnnotationAccess
methodName
- the name of the method.argumentTypes
- the types of the parameters of the method.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.