|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalRegistry
Internal view of the module registry, adding additional methods needed by modules.
Method Summary | ||
---|---|---|
String |
expandSymbols(String input)
Given an input string that may contain symbols, returns the string with any and all symbols fully expanded. |
|
List<ServiceAdvisor> |
findAdvisorsForService(ServiceDef3 serviceDef)
Searches for advisors for a particular service, returning them in order of application. |
|
List<ServiceDecorator> |
findDecoratorsForService(ServiceDef3 serviceDef)
Searches for decorators for a particular service. |
|
|
getMappedConfiguration(ServiceDef3 serviceDef,
Class<K> keyType,
Class<V> valueType)
Builds up a map of key/value pairs by invoking service contribution methods that target the service (from any module, unless the service is private). |
|
Set<Class> |
getMarkerAnnotations()
Returns a Set of Annotation classes that are used as service markers. |
|
|
getObject(Class<T> objectType,
AnnotationProvider annotationProvider,
ObjectLocator locator,
Module localModule)
As with ObjectLocator.getObject(Class, org.apache.tapestry5.ioc.AnnotationProvider) ,
but handles the Local annotation. |
|
|
getOrderedConfiguration(ServiceDef3 serviceDef,
Class<T> valueType)
Builds up an ordered collection by invoking service contributor methods that target the service (from any module, unless the service is private). |
|
ServiceLifecycle2 |
getServiceLifecycle(String scope)
Returns a service lifecycle by service scope name. |
|
org.slf4j.Logger |
getServiceLogger(String serviceId)
Returns a logger for the service, which consists of the Module's log name suffixed
with a period and the service id. |
|
|
getUnorderedConfiguration(ServiceDef3 serviceDef,
Class<T> valueType)
Builds up an unordered collection by invoking service contributor methods that target the service (from any module, unless the service is private). |
|
ClassFab |
newClass(Class serviceInterface)
Convieience for creating a new ClassFab instance using a
ClassFactory . |
|
|
proxy(Class<T> interfaceClass,
Class<? extends T> implementationClass,
ObjectLocator locator)
Creates a just-in-time (and possibly, live reloading) proxy for the indicated class and interface, using the provided locator to autobuild the implementationClass (when necessary). |
Methods inherited from interface org.apache.tapestry5.ioc.Registry |
---|
cleanupThread, performRegistryStartup, shutdown |
Methods inherited from interface org.apache.tapestry5.ioc.ObjectLocator |
---|
autobuild, autobuild, getObject, getService, getService, getService, proxy |
Methods inherited from interface org.apache.tapestry5.ioc.services.RegistryShutdownHub |
---|
addRegistryShutdownListener, addRegistryShutdownListener, addRegistryWillShutdownListener |
Methods inherited from interface org.apache.tapestry5.ioc.OperationTracker |
---|
invoke, run |
Method Detail |
---|
<T> T getObject(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator, Module localModule)
ObjectLocator.getObject(Class, org.apache.tapestry5.ioc.AnnotationProvider)
,
but handles the Local
annotation.
objectType
- type of object o be injectedannotationProvider
- access to annotations at point of injectionlocator
- used to resolve any subsequent injectionslocalModule
- module to limit services to, if Local annotaton present
ServiceLifecycle2 getServiceLifecycle(String scope)
scope
- the name of the service scope (case insensitive)
RuntimeException
- if the lifecycle name does not match a known lifecycleList<ServiceDecorator> findDecoratorsForService(ServiceDef3 serviceDef)
DecoratorDef
s
are ordered, then converted into ServiceDecorator
s.
List<ServiceAdvisor> findAdvisorsForService(ServiceDef3 serviceDef)
<T> Collection<T> getUnorderedConfiguration(ServiceDef3 serviceDef, Class<T> valueType)
T
- serviceDef
- defines the service for which configuration data is being assembledvalueType
- identifies the type of object allowed into the collection
<T> List<T> getOrderedConfiguration(ServiceDef3 serviceDef, Class<T> valueType)
T
- serviceDef
- defines the service for which configuration data is being assembledvalueType
- identifies the type of object allowed into the collection
<K,V> Map<K,V> getMappedConfiguration(ServiceDef3 serviceDef, Class<K> keyType, Class<V> valueType)
K
- V
- serviceDef
- defines the service for which configuration data is being assembledkeyType
- identifies the type of key object allowed into the mapvalueType
- identifies the type of value object allowed into the map
ClassFab newClass(Class serviceInterface)
ClassFab
instance using a
ClassFactory
.
serviceInterface
- the interface to be implemented by the provided classString expandSymbols(String input)
input
-
org.slf4j.Logger getServiceLogger(String serviceId)
log name
suffixed
with a period and the service id.
serviceId
-
<T> T proxy(Class<T> interfaceClass, Class<? extends T> implementationClass, ObjectLocator locator)
Set<Class> getMarkerAnnotations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |