public class DefaultExtensionPointManager extends Object implements ExtensionPointManager
Constructor and Description |
---|
DefaultExtensionPointManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ExtensionPoint extensionPoint)
Aņade el punto de extension indicado al registro de puntos de extension.
|
ExtensionPoint |
add(String name) |
ExtensionPoint |
add(String name,
String description)
Metodo de utilidad para facilitar la creacion de puntos de extension.
|
ExtensionPoint.Extension |
add(String name,
String description,
String extName,
String extDescription,
Class extension) |
ExtensionPoint.Extension |
add(String name,
String description,
String extName,
String extDescription,
ExtensionBuilder builder) |
Object |
create(Class cls) |
Object |
create(Class cls,
Map args) |
Object |
create(Class cls,
Object[] args) |
ExtensionPoint |
create(String name,
String description)
Crea un nuevo punto de extension y nos lo debuelve.
|
Object |
createObject(Class klass,
Object[] args) |
ExtensionPoint |
get(String name)
Obtiene el punto de extension asociado al nombre indicado.
|
int |
getCount()
Obtiene el numero de puntos de extension existentes.
|
static DefaultExtensionPointManager |
getManager() |
List |
getNames()
Obtiene la lista de nombres de los puntos de extension existentes.
|
boolean |
has(String name)
Comprueba si un punto de extension existe.
|
Iterator |
interator()
Obtiene un iterador sobre los puntos de extension existentes.
|
public static DefaultExtensionPointManager getManager()
public Object create(Class cls) throws InstantiationException, IllegalAccessException
public Object create(Class cls, Map args) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public Object create(Class cls, Object[] args) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public ExtensionPoint create(String name, String description)
ExtensionPointManager
create
in interface ExtensionPointManager
name
- , nombre del punto de extension a crear.description
- , descripcion del punto de extension a crear.public boolean add(ExtensionPoint extensionPoint)
ExtensionPointManager
add
in interface ExtensionPointManager
extensionPoint
- , punto de extension a aņadir al registro.public ExtensionPoint add(String name, String description)
ExtensionPointManager
add
in interface ExtensionPointManager
description
- , descripcion del punto de extensionpublic ExtensionPoint add(String name)
add
in interface ExtensionPointManager
public ExtensionPoint.Extension add(String name, String description, String extName, String extDescription, Class extension)
public ExtensionPoint.Extension add(String name, String description, String extName, String extDescription, ExtensionBuilder builder)
public ExtensionPoint get(String name)
ExtensionPointManager
get
in interface ExtensionPointManager
name
- , nombre del punto de extension que queremos obtener.public int getCount()
ExtensionPointManager
getCount
in interface ExtensionPointManager
public boolean has(String name)
ExtensionPointManager
has
in interface ExtensionPointManager
public Iterator interator()
ExtensionPointManager
interator
in interface ExtensionPointManager
public List getNames()
ExtensionPointManager
getNames
in interface ExtensionPointManager
public Object createObject(Class klass, Object[] args) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
createObject
in interface ExtensionPointManager
SecurityException
NoSuchMethodException
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException