| org.apache.tapestry.ioc.internal.InternalRegistry
All known Subclasses: org.apache.tapestry.ioc.internal.RegistryImpl,
InternalRegistry | public interface InternalRegistry extends Registry,RegistryShutdownHub(Code) | | 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<ServiceDecorator> | findDecoratorsForService(ServiceDef serviceDef) Searches for decorators for a particular service. | Map<K, V> | getMappedConfiguration(ServiceDef serviceDef, Class<K> keyType, Class<V> valueType) Builds up a map of key/value pairs by invoking service contribution methods that tharget the
service (from any module, unless the service is private). | List<T> | getOrderedConfiguration(ServiceDef 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). | ServiceLifecycle | getServiceLifecycle(String scope) Returns a service lifecycle by service scope name. | Collection<T> | getUnorderedConfiguration(ServiceDef 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). | Log | logForService(String serviceId) Returns a log for the service, which consists of the Module's
Module.getLogName log name suffixed with a period and the service id. | ClassFab | newClass(Class serviceInterface) Convieience for creating a new
ClassFab instance using a
org.apache.tapestry.ioc.services.ClassFactory . |
expandSymbols | String expandSymbols(String input)(Code) | | Given an input string that may contain symbols, returns the string with any and
all symbols fully expanded.
Parameters: input - expanded input |
getMappedConfiguration | Map<K, V> getMappedConfiguration(ServiceDef serviceDef, Class<K> keyType, Class<V> valueType)(Code) | | Builds up a map of key/value pairs by invoking service contribution methods that tharget the
service (from any module, unless the service is private). Values and keys may not be null.
Invalid values (keys or values that are the wrong type, or duplicate keys) result in warnings
and are ignored.
Parameters: serviceDef - defines the service for which configuration data is being assembled Parameters: keyType - identifies the type of key object allowed into the map Parameters: valueType - identifies the type of value object allowed into the map the final ordered list |
getOrderedConfiguration | List<T> getOrderedConfiguration(ServiceDef serviceDef, Class<T> valueType)(Code) | | Builds up an ordered collection by invoking service contributor methods that target the
service (from any module, unless the service is private). Once all values have been added
(each with an id, and pre/post constraints), the values are ordered, null values dropped, and
the final sorted list is returned.
< Parameters: T - > Parameters: serviceDef - defines the service for which configuration data is being assembled Parameters: valueType - identifies the type of object allowed into the collection the final ordered list |
getServiceLifecycle | ServiceLifecycle getServiceLifecycle(String scope)(Code) | | Returns a service lifecycle by service scope name.
Parameters: scope - the name of the service scope (case insensitive) the lifecycle corresponding to the scope throws: RuntimeException - if the lifecycle name does not match a known lifecycle |
getUnorderedConfiguration | Collection<T> getUnorderedConfiguration(ServiceDef serviceDef, Class<T> valueType)(Code) | | Builds up an unordered collection by invoking service contributor methods that target the
service (from any module, unless the service is private).
< Parameters: T - > Parameters: serviceDef - defines the service for which configuration data is being assembled Parameters: valueType - identifies the type of object allowed into the collection the final collection |
logForService | Log logForService(String serviceId)(Code) | | Returns a log for the service, which consists of the Module's
Module.getLogName log name suffixed with a period and the service id.
Parameters: serviceId - the log instance for the service |
|
|