Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/aendvari/cerberus/component/assembly/AssembledComponent.java


1   /*
2    * AssembledComponent.java
3    *
4    * Copyright (c) 2001, 2002 Aendvari, Ltd. All Rights Reserved.
5    *
6    * See the file LICENSE for terms of use.
7    *
8    */
9   
10  package com.aendvari.cerberus.component.assembly;
11  
12  import com.aendvari.cerberus.component.descriptor.ComponentDescriptor;
13  import com.aendvari.cerberus.component.assembly.AssemblyContext;
14  
15  /**
16   * <p>Defines an interface for a component to be built with a {@link ComponentAssembler}.</p>
17   *
18   * @author  Trevor Milne
19   *
20   */
21  
22  public interface AssembledComponent
23  {
24    /**
25     * Creates the component based on the provided descriptor.
26     *
27     * The {@link AssemblyContext} object is transient and should not be retained
28     * by the component. However, this may not apply to property objects within the context.
29     *
30     * The {@link ComponentDescriptor} may be safely retained by the component.
31     *
32     * @param    context            The {@link AssemblyContext} for this component.
33     * @param    descriptor          The {@link ComponentDescriptor} for this component.
34     *
35     */
36  
37    public void createComponent(AssemblyContext context, ComponentDescriptor descriptor);
38  }
39