public interface InternalRegistry extends Registry, RegistryShutdownHub, OperationTracker
Modifier and Type | Method and Description |
---|---|
java.lang.String |
expandSymbols(java.lang.String input)
Given an input string that may contain symbols, returns the string with any and all symbols fully
expanded.
|
java.util.List<ServiceAdvisor> |
findAdvisorsForService(ServiceDef3 serviceDef)
Searches for advisors for a particular service, returning them in order of application.
|
java.util.List<ServiceDecorator> |
findDecoratorsForService(ServiceDef3 serviceDef)
Searches for decorators for a particular service.
|
<K,V> java.util.Map<K,V> |
getMappedConfiguration(ServiceDef3 serviceDef,
java.lang.Class<K> keyType,
java.lang.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).
|
java.util.Set<java.lang.Class> |
getMarkerAnnotations()
Returns a Set of Annotation classes that are used as service markers.
|
<T> T |
getObject(java.lang.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> java.util.List<T> |
getOrderedConfiguration(ServiceDef3 serviceDef,
java.lang.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(java.lang.String scope)
Returns a service lifecycle by service scope name.
|
org.slf4j.Logger |
getServiceLogger(java.lang.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> java.util.Collection<T> |
getUnorderedConfiguration(ServiceDef3 serviceDef,
java.lang.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(java.lang.Class<T> interfaceClass,
java.lang.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(java.lang.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(java.lang.String scope)
scope
- the name of the service scope (case insensitive)java.lang.RuntimeException
- if the lifecycle name does not match a known lifecyclejava.util.List<ServiceDecorator> findDecoratorsForService(ServiceDef3 serviceDef)
DecoratorDef
s
are ordered, then converted into ServiceDecorator
s.java.util.List<ServiceAdvisor> findAdvisorsForService(ServiceDef3 serviceDef)
<T> java.util.Collection<T> getUnorderedConfiguration(ServiceDef3 serviceDef, java.lang.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> java.util.List<T> getOrderedConfiguration(ServiceDef3 serviceDef, java.lang.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> java.util.Map<K,V> getMappedConfiguration(ServiceDef3 serviceDef, java.lang.Class<K> keyType, java.lang.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 mapjava.lang.String expandSymbols(java.lang.String input)
input
- org.slf4j.Logger getServiceLogger(java.lang.String serviceId)
log name
suffixed
with a period and the service id.serviceId
- <T> T proxy(java.lang.Class<T> interfaceClass, java.lang.Class<? extends T> implementationClass, ObjectLocator locator)
java.util.Set<java.lang.Class> getMarkerAnnotations()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.