Package net.sf.jguiraffe.gui.builder
Interface BeanBuilderResult
-
public interface BeanBuilderResultDefinition of an interface for accessing the results of a
BeanBuilder.A bean builder processes a script with bean definitions, creates
BeanProviderobjects from them and stores these providers inBeanStoreobjects. An arbitrary number ofBeanStoreobjects may be created during a builder operation, which can be organized in a hierarchical structure.This interface allows access to the
BeanStoreobjects created by the bean builder. They can be listed or queried by name. A client can thus obtain exactly the store objects it needs. Further, there is some information available about helper objects that have been used during processing of the builder script.- Version:
- $Id: BeanBuilderResult.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BeanStoregetBeanStore(String name)Returns theBeanStorewith the given name.Set<String>getBeanStoreNames()Returns a set with the names of the existing bean stores.ClassLoaderProvidergetClassLoaderProvider()Returns theClassLoaderProviderthat was used by the builder during script processing.InvocationHelpergetInvocationHelper()Returns theInvocationHelperobject that was used by builder during script processing.
-
-
-
Method Detail
-
getBeanStoreNames
Set<String> getBeanStoreNames()
Returns a set with the names of the existing bean stores.- Returns:
- a set with the names of the bean stores
-
getBeanStore
BeanStore getBeanStore(String name)
Returns theBeanStorewith the given name. The name can be null, then the rootBeanStoreof the builder operation is returned.- Parameters:
name- the name of the desiredBeanStore- Returns:
- the
BeanStorewith this name - Throws:
NoSuchElementException- if there is no suchBeanStore
-
getClassLoaderProvider
ClassLoaderProvider getClassLoaderProvider()
Returns theClassLoaderProviderthat was used by the builder during script processing.- Returns:
- the
ClassLoaderProvider
-
getInvocationHelper
InvocationHelper getInvocationHelper()
Returns theInvocationHelperobject that was used by builder during script processing. This object also contains theConversionHelperwith all registered type converters. So this information may be of interest for a client. It is also required for releasing a builder result.- Returns:
- the
InvocationHelperused by the builder
-
-