|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.internal.ObjectLocatorImpl org.apache.tapestry5.ioc.internal.ServiceResourcesImpl
public class ServiceResourcesImpl
Implementation of ServiceBuilderResources
. We just have one
implementation that fills the purposes of methods that need a ServiceResources
(which includes service decorator methods) as well as methods that need a
ServiceBuilderResources
(which is just service builder methods). Since it is most
commonly used for the former, we'll just leave the name as ServiceResourcesImpl.
Constructor Summary | |
---|---|
ServiceResourcesImpl(InternalRegistry registry,
Module module,
ServiceDef3 serviceDef,
PlasticProxyFactory proxyFactory,
org.slf4j.Logger logger)
|
Method Summary | ||
---|---|---|
|
autobuild(Class<T> clazz)
Autobuilds a class by finding the public constructor with the most parameters. |
|
|
autobuild(String description,
Class<T> clazz)
Preferred version of ObjectLocator.autobuild(Class) that tracks the operation using
OperationTracker.invoke(String, Invokable) . |
|
AnnotationProvider |
getClassAnnotationProvider()
Returns a provider for annotations on the service class and interface. |
|
Class |
getImplementationClass()
Returns null (as of 5.3). |
|
org.slf4j.Logger |
getLogger()
Returns a Logger appropriate for logging messages. |
|
|
getMappedConfiguration(Class<K> keyType,
Class<V> valueType)
|
|
AnnotationProvider |
getMethodAnnotationProvider(String methodName,
Class... parameterTypes)
Returns a provider for annotations of a method of the class. |
|
Object |
getModuleBuilder()
Returns the instantiated version of the Tapestry IoC module class. |
|
|
getOrderedConfiguration(Class<T> valueType)
|
|
String |
getServiceId()
Returns the fully qualified id of the service. |
|
Class |
getServiceInterface()
Returns the service interface implemented by the service. |
|
OperationTracker |
getTracker()
Returns an object that can be used to track operations related to constructing, configuring, decorating and initializing the service. |
|
|
getUnorderedConfiguration(Class<T> valueType)
|
Methods inherited from class org.apache.tapestry5.ioc.internal.ObjectLocatorImpl |
---|
getObject, getService, getService, getService, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tapestry5.ioc.ObjectLocator |
---|
getObject, getService, getService, getService, proxy |
Constructor Detail |
---|
public ServiceResourcesImpl(InternalRegistry registry, Module module, ServiceDef3 serviceDef, PlasticProxyFactory proxyFactory, org.slf4j.Logger logger)
Method Detail |
---|
public String getServiceId()
ServiceResources
getServiceId
in interface ServiceResources
public Class getServiceInterface()
ServiceResources
getServiceInterface
in interface ServiceResources
public org.slf4j.Logger getLogger()
ServiceResources
getLogger
in interface ServiceResources
public <T> Collection<T> getUnorderedConfiguration(Class<T> valueType)
getUnorderedConfiguration
in interface ServiceBuilderResources
public <T> List<T> getOrderedConfiguration(Class<T> valueType)
getOrderedConfiguration
in interface ServiceBuilderResources
public <K,V> Map<K,V> getMappedConfiguration(Class<K> keyType, Class<V> valueType)
getMappedConfiguration
in interface ServiceBuilderResources
public Object getModuleBuilder()
ModuleBuilderSource
getModuleBuilder
in interface ModuleBuilderSource
public <T> T autobuild(String description, Class<T> clazz)
ObjectLocator
ObjectLocator.autobuild(Class)
that tracks the operation using
OperationTracker.invoke(String, Invokable)
.
autobuild
in interface ObjectLocator
autobuild
in class ObjectLocatorImpl
description
- description used with OperationTracker
clazz
- the type of object to instantiate
MasterObjectProvider
public <T> T autobuild(Class<T> clazz)
ObjectLocator
Inject
annotation. There are two cases: constructing a service implementation, and constructing
an arbitrary object. In the former case, many service resources are also available for injection, not
just dependencies or objects provided via
MasterObjectProvider.provide(Class, AnnotationProvider, ObjectLocator, boolean)
.
autobuild
in interface ObjectLocator
autobuild
in class ObjectLocatorImpl
clazz
- the type of object to instantiate
MasterObjectProvider
public OperationTracker getTracker()
ServiceResources
getTracker
in interface ServiceResources
public Class getImplementationClass()
ServiceResources
getImplementationClass
in interface ServiceResources
public AnnotationProvider getClassAnnotationProvider()
AnnotationAccess
getClassAnnotationProvider
in interface AnnotationAccess
public AnnotationProvider getMethodAnnotationProvider(String methodName, Class... parameterTypes)
AnnotationAccess
getMethodAnnotationProvider
in interface AnnotationAccess
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |