public interface InternalRegistry extends Registry, RegistryShutdownHub, OperationTracker
Modifier and Type | Method and Description |
---|---|
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.
|
<K,V> Map<K,V> |
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.
|
<T> T |
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. |
<T> List<T> |
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. |
<T> Collection<T> |
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).
|
<T> T |
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).
|
cleanupThread, performRegistryStartup, shutdown
autobuild, autobuild, getObject, getService, getService, getService, proxy
addRegistryShutdownListener, addRegistryShutdownListener, addRegistryWillShutdownListener
invoke, perform, run
<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 presentServiceLifecycle2 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 mapString 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()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.