org.jtoolkit.essence.data
Class CollectionComponentBuilder

java.lang.Object
  extended by org.jtoolkit.essence.data.CollectionComponentBuilder
All Implemented Interfaces:
ComponentBuilder, Named

public class CollectionComponentBuilder
extends java.lang.Object
implements ComponentBuilder

Build Store/Map/Queues from the Collections table in the container configuration.

Author:
Peter Lawrey

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jtoolkit.essence.utils.Named
Named.ContextSource<T>, Named.MapSource<T>, Named.Source<T>
 
Field Summary
 
Fields inherited from interface org.jtoolkit.essence.app.ComponentBuilder
ATTEMPTED_TO_GET_COMPONENT
 
Constructor Summary
CollectionComponentBuilder(java.lang.String name, Container container)
           
 
Method Summary
 java.lang.String getName()
           
<T> T
resolveComponent(java.lang.String componentName, java.lang.Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionComponentBuilder

public CollectionComponentBuilder(@NotNull
                                  java.lang.String name,
                                  @NotNull
                                  Container container)
                           throws java.lang.InstantiationException
Throws:
java.lang.InstantiationException
Method Detail

getName

@NotNull
public java.lang.String getName()
Specified by:
getName in interface Named
Returns:
A printable name.

resolveComponent

@Nullable
public <T> T resolveComponent(@NotNull
                                       java.lang.String componentName,
                                       @Nullable
                                       java.lang.Class<T> type)
                   throws java.lang.IllegalStateException,
                          java.lang.IllegalArgumentException
Specified by:
resolveComponent in interface ComponentBuilder
Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException


Copyright © Peter Lawrey. All Rights Reserved.