Search in sources :

Example 1 with RegistryWrapper

use of org.apache.tapestry5.ioc.internal.RegistryWrapper in project tapestry-5 by apache.

the class RegistryBuilder method build.

/**
 * Constructs and returns the registry; this may only be done once. The caller is responsible for invoking
 * {@link org.apache.tapestry5.ioc.Registry#performRegistryStartup()}.
 */
public Registry build() {
    lock.lock();
    PerThreadOperationTracker tracker = new PerThreadOperationTracker(loggerSource.getLogger(Registry.class));
    RegistryImpl registry = new RegistryImpl(modules, proxyFactory, loggerSource, tracker);
    return new RegistryWrapper(registry);
}
Also used : RegistryImpl(org.apache.tapestry5.ioc.internal.RegistryImpl) PerThreadOperationTracker(org.apache.tapestry5.ioc.internal.PerThreadOperationTracker) RegistryWrapper(org.apache.tapestry5.ioc.internal.RegistryWrapper)

Aggregations

PerThreadOperationTracker (org.apache.tapestry5.ioc.internal.PerThreadOperationTracker)1 RegistryImpl (org.apache.tapestry5.ioc.internal.RegistryImpl)1 RegistryWrapper (org.apache.tapestry5.ioc.internal.RegistryWrapper)1