/** * Adds a default module descriptor provider to this <code>RegistryBuilder</code>. A default * module descriptor provider is merely a {@link XmlModuleDescriptorProvider} constructed with a * {@link DefaultClassResolver}. * * @since 1.1 */ public void addDefaultModuleDescriptorProvider() { addModuleDescriptorProvider(new XmlModuleDescriptorProvider(new DefaultClassResolver())); }
public ServiceImplementationConstructor createConstructor( ServicePoint point, Module contributingModule) { CreateClassServiceConstructor result = new CreateClassServiceConstructor(); result.setLocation(getLocation()); result.setContributingModule(contributingModule); result.setInstanceClassName(_instanceClassName); return result; }
static String wrongNumberOfParameters(String factoryServiceId, int actualCount, Occurances expectation) { return _formatter.format( "wrong-number-of-parameters", factoryServiceId, contributionCount(actualCount), occurances(expectation)); }
static String unableToExtendMethod(MethodSignature ms, String className, Throwable cause) { return _formatter.format("unable-to-extend-method", ms, className, cause); } }
static String serviceNotVisible(String serviceId, Module module) { return _formatter.format("service-not-visible", serviceId, convertModule(module)); }
static String closeOnce() { return _formatter.getMessage("close-once"); } }
private synchronized Map inner() { if (_inner == null) { _inner = _point.constructMapElements(); // Replace ourselves in the outer proxy with the actual list. _outer.setInner(_inner); } return _inner; }
private synchronized List inner() { if (_inner == null) { _inner = _point.constructElements(); // Replace ourselves in the outer proxy with the actual list. _outer.setInner(_inner); } return _inner; }
public RegistryInfrastructureImpl(ErrorHandler errorHandler, Locale locale) { _errorHandler = errorHandler; _locale = locale; _translatorManager = new TranslatorManager(this, errorHandler); _expander = new SymbolExpander(_errorHandler, this); }
/** @since 1.1 */ public static String paramNotNull(String parameterName) { return _formatter.format("param-not-null", parameterName); }
ElementsInnerProxyList(ConfigurationPointImpl point, ElementsProxyList outer) { _point = point; _outer = outer; _outer.setInner(this); }
public static String errorPagePoolGet(Object key) { return _formatter.format("error-page-pool-borrow", key); } }
static String configurationNotVisible(String configurationId, Module module) { return _formatter.format( "configuration-not-visible", configurationId, convertModule(module)); }
static String mustSetTitleBeforeProperty() { return _formatter.getMessage("must-set-title-before-property"); } }
public String format(String key, Object arg0, Object arg1) { return format(key, new Object[] { arg0, arg1 }); }
static String missingContextResource(String path) { return _formatter.format("missing-context-resource", path); } }
static String uniqueAttributeConstraintBroken(String name, String value, Location priorLocation) { return _formatter.format("unique-attribute-constraint-broken", name, value, priorLocation); }
static String unableToPresentExceptionPage(Throwable cause) { return _formatter.format("unable-to-present-exception-page", cause); } }
static String errorInvokingMethod(String methodName, Object parent, Location location, Throwable cause) { return _formatter.format("error-invoking-method", new Object[] { methodName, parent, location, cause }); }