|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,
ServiceDef serviceDef,
ClassFactory classFactory,
org.slf4j.Logger logger)
|
|
| Method Summary | ||
|---|---|---|
|
autobuild(java.lang.Class<T> clazz)
Autobuilds a class by finding the public constructor with the most parameters. |
|
|
autobuild(java.lang.String description,
java.lang.Class<T> clazz)
Preferred version of ObjectLocator.autobuild(Class) that tracks the operation using
OperationTracker.invoke(String, Invokable). |
|
java.lang.Class |
getImplementationClass()
Returns the service implementation class. |
|
org.slf4j.Logger |
getLogger()
Returns a Logger appropriate for logging messages. |
|
|
getMappedConfiguration(java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
|
|
java.lang.Object |
getModuleBuilder()
Returns the instantiated version of the Tapestry IoC module class. |
|
|
getOrderedConfiguration(java.lang.Class<T> valueType)
|
|
java.lang.String |
getServiceId()
Returns the fully qualified id of the service. |
|
java.lang.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(java.lang.Class<T> valueType)
|
|
| Methods inherited from class org.apache.tapestry5.ioc.internal.ObjectLocatorImpl |
|---|
getObject, 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, proxy |
| Constructor Detail |
|---|
public ServiceResourcesImpl(InternalRegistry registry,
Module module,
ServiceDef serviceDef,
ClassFactory classFactory,
org.slf4j.Logger logger)
| Method Detail |
|---|
public java.lang.String getServiceId()
ServiceResources
getServiceId in interface ServiceResourcespublic java.lang.Class getServiceInterface()
ServiceResources
getServiceInterface in interface ServiceResourcespublic org.slf4j.Logger getLogger()
ServiceResources
getLogger in interface ServiceResourcespublic <T> java.util.Collection<T> getUnorderedConfiguration(java.lang.Class<T> valueType)
getUnorderedConfiguration in interface ServiceBuilderResourcespublic <T> java.util.List<T> getOrderedConfiguration(java.lang.Class<T> valueType)
getOrderedConfiguration in interface ServiceBuilderResources
public <K,V> java.util.Map<K,V> getMappedConfiguration(java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
getMappedConfiguration in interface ServiceBuilderResourcespublic java.lang.Object getModuleBuilder()
ModuleBuilderSource
getModuleBuilder in interface ModuleBuilderSource
public <T> T autobuild(java.lang.String description,
java.lang.Class<T> clazz)
ObjectLocatorObjectLocator.autobuild(Class) that tracks the operation using
OperationTracker.invoke(String, Invokable).
autobuild in interface ObjectLocatorautobuild in class ObjectLocatorImpldescription - description used with OperationTrackerclazz - the type of object to instantiate
MasterObjectProviderpublic <T> T autobuild(java.lang.Class<T> clazz)
ObjectLocatorInject 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 ObjectLocatorautobuild in class ObjectLocatorImplclazz - the type of object to instantiate
MasterObjectProviderpublic OperationTracker getTracker()
ServiceResources
getTracker in interface ServiceResourcespublic java.lang.Class getImplementationClass()
ServiceResources
getImplementationClass in interface ServiceResources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||