g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IElementCreatorRegistry


public interface IElementCreatorRegistry

The element creator registry keeps track of all currently registered extensions of the eu.geclipse.core.gridElementCreator extension point. The g-Eclipse core provides an internal implementation of this interface that can be accessed with GridModel.getCreatorRegistry().


Method Summary
 java.util.List<IConfigurationElement> getConfigurations()
          Get a list of IConfigurationElements for all element creators that are defined as extensions of the eu.geclipse.core.gridElementCreator extension point.
 java.util.List<IConfigurationElement> getConfigurations(java.lang.Class<? extends java.lang.Object> source, java.lang.Class<? extends IGridElement> target)
          Get a list of IConfigurationElement representing creators that are able to create an element of the specified type from the specified object.
 IGridElementCreator getCreator(java.lang.Class<? extends java.lang.Object> source, java.lang.Class<? extends IGridElement> target)
          Get the first IGridElementCreator that is able to create an element of the specified type from the specified object type.
 IGridElementCreator getCreator(java.lang.Object source, java.lang.Class<? extends IGridElement> target)
          Get the first IGridElementCreator that is able to create an element of the specified type from the specified object.
 IGridElementCreator getCreator(java.lang.Object source, java.lang.String targetClassName)
           
 java.util.List<IGridElementCreator> getCreators()
          Get a list of all element creators that are defined as extensions of the eu.geclipse.core.gridElementCreator extension point.
 java.util.List<IGridElementCreator> getCreators(java.lang.Class<? extends java.lang.Object> source, java.lang.Class<? extends IGridElement> target)
          Get a list of IGridElementCreator that are able to create an element of the specified type from the specified object type.
 java.util.List<IGridElementCreator> getCreators(java.lang.Object source, java.lang.Class<? extends IGridElement> target)
          Get a list of IGridElementCreator that are able to create an element of the specified type from the specified object.
 

Method Detail

getConfigurations

java.util.List<IConfigurationElement> getConfigurations()
Get a list of IConfigurationElements for all element creators that are defined as extensions of the eu.geclipse.core.gridElementCreator extension point.

Returns:
All defined element creators.

getConfigurations

java.util.List<IConfigurationElement> getConfigurations(java.lang.Class<? extends java.lang.Object> source,
                                                        java.lang.Class<? extends IGridElement> target)
Get a list of IConfigurationElement representing creators that are able to create an element of the specified type from the specified object.

Parameters:
source - The object from which to create the element.
target - The type of the element to be created.
Returns:
A list of IConfigurationElements representing appropriate element creators. If no such creators are currently registered an empty list is returned.

getCreators

java.util.List<IGridElementCreator> getCreators()
Get a list of all element creators that are defined as extensions of the eu.geclipse.core.gridElementCreator extension point.

Returns:
All defined element creators.

getCreator

IGridElementCreator getCreator(java.lang.Object source,
                               java.lang.Class<? extends IGridElement> target)
Get the first IGridElementCreator that is able to create an element of the specified type from the specified object. If such a creator could be found and a source object was specified the creator's source objects will be initialised by calling IGridElementCreator.setSource(Object).

Parameters:
source - The object from which to create the element.
target - The type of the element to be created.
Returns:
An appropriate element creator or null if no such creator is currently registered.

getCreator

IGridElementCreator getCreator(java.lang.Object source,
                               java.lang.String targetClassName)
                               throws ProblemException
Throws:
ProblemException

getCreator

IGridElementCreator getCreator(java.lang.Class<? extends java.lang.Object> source,
                               java.lang.Class<? extends IGridElement> target)
Get the first IGridElementCreator that is able to create an element of the specified type from the specified object type.

Parameters:
source - The object type from which to create the element.
target - The type of the element to be created.
Returns:
An appropriate element creator or null if no such creator is currently registered.

getCreators

java.util.List<IGridElementCreator> getCreators(java.lang.Object source,
                                                java.lang.Class<? extends IGridElement> target)
Get a list of IGridElementCreator that are able to create an element of the specified type from the specified object. If such creators could be found and a source object was specified the creators' source objects will be initialised by calling IGridElementCreator.setSource(Object).

Parameters:
source - The object from which to create the element.
target - The type of the element to be created.
Returns:
A list of appropriate element creators. If no such creators are currently registered an empty list is returned.

getCreators

java.util.List<IGridElementCreator> getCreators(java.lang.Class<? extends java.lang.Object> source,
                                                java.lang.Class<? extends IGridElement> target)
Get a list of IGridElementCreator that are able to create an element of the specified type from the specified object type.

Parameters:
source - The object type from which to create the element.
target - The type of the element to be created.
Returns:
A list of appropriate element creators. If no such creators are currently registered an empty list is returned.

g-Eclipse
Release 1.0.0