Package org.apache.tapestry5.ioc
Class RegistryBuilder
java.lang.Object
org.apache.tapestry5.ioc.RegistryBuilder
Used to construct the IoC
Registry. This class is not thread-safe. The
Registry, once created, is thread-safe.-
Constructor Summary
ConstructorsConstructorDescriptionRegistryBuilder(ClassLoader classLoader) RegistryBuilder(ClassLoader classLoader, LoggerSource loggerSource) -
Method Summary
Modifier and TypeMethodDescriptionAdds a number of modules (as module classes) to the registry, returning the builder for further configuration.Adds a modle class (specified by fully qualified class name) to the registry, returning the builder for further configuration.Adds aModuleDefto the registry, returning the builder for further configuration.build()Constructs and returns the registry; this may only be done once.static RegistrybuildAndStartupRegistry(Class... moduleClasses) Constructs the registry, adds a number of modules (as module classes) to the registry and performs registry startup.static RegistrybuildAndStartupRegistry(ModuleDef moduleDef, Class... moduleClasses) Constructs the registry, adds aModuleDefand a number of modules (as module classes) to the registry and performs registry startup.org.slf4j.Logger
-
Constructor Details
-
RegistryBuilder
public RegistryBuilder() -
RegistryBuilder
-
RegistryBuilder
-
-
Method Details
-
add
Adds aModuleDefto the registry, returning the builder for further configuration. -
add
Adds a number of modules (as module classes) to the registry, returning the builder for further configuration.- See Also:
-
add
Adds a modle class (specified by fully qualified class name) to the registry, returning the builder for further configuration.- See Also:
-
build
Constructs and returns the registry; this may only be done once. The caller is responsible for invokingRegistry.performRegistryStartup(). -
getClassLoader
-
getLogger
-
buildAndStartupRegistry
Constructs the registry, adds aModuleDefand a number of modules (as module classes) to the registry and performs registry startup. The returned registry is ready to use. The caller is must not invokeRegistry.performRegistryStartup(). -
buildAndStartupRegistry
Constructs the registry, adds a number of modules (as module classes) to the registry and performs registry startup. The returned registry is ready to use. The caller is must not invokeRegistry.performRegistryStartup().- Parameters:
moduleClasses- modules (as module classes) to add- Returns:
Registry- Since:
- 5.2.0
-