|
||||||||||
| 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(Class<T> clazz)
Autobuilds a class by finding the public constructor with the most parameters. |
|
org.slf4j.Logger |
getLogger()
Returns a Logger appropriate for logging messages. |
|
|
getMappedConfiguration(Class<K> keyType,
Class<V> valueType)
|
|
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, 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 String getServiceId()
ServiceResources
getServiceId in interface ServiceResourcespublic Class getServiceInterface()
ServiceResources
getServiceInterface in interface ServiceResourcespublic org.slf4j.Logger getLogger()
ServiceResources
getLogger in interface ServiceResourcespublic <T> Collection<T> getUnorderedConfiguration(Class<T> valueType)
getUnorderedConfiguration in interface ServiceBuilderResourcespublic <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 ServiceBuilderResourcespublic Object getModuleBuilder()
ModuleBuilderSource
getModuleBuilder in interface ModuleBuilderSourcepublic <T> T autobuild(Class<T> clazz)
ObjectLocator
autobuild in interface ObjectLocatorautobuild in class ObjectLocatorImplclazz - the type of object to instantiate
MasterObjectProviderpublic OperationTracker getTracker()
ServiceResources
getTracker in interface ServiceResources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||