org.jboss.seam.init
Class ComponentDescriptor
java.lang.Object
org.jboss.seam.init.ComponentDescriptor
- All Implemented Interfaces:
- Comparable<ComponentDescriptor>
public class ComponentDescriptor
- extends Object
- implements Comparable<ComponentDescriptor>
Meta-data about a Seam component.
- Author:
- Norman Richards
Constructor Summary |
ComponentDescriptor(Class componentClass)
For a scanned default role |
ComponentDescriptor(Class componentClass,
Boolean installed)
For built-ins with special rules |
ComponentDescriptor(String name,
Class<?> componentClass,
ScopeType scope)
For a scanned role |
ComponentDescriptor(String name,
Class<?> componentClass,
ScopeType scope,
Boolean autoCreate,
Boolean startup,
String[] startupDepends,
String jndiName,
Boolean installed,
Integer precedence)
For components.xml |
name
protected String name
componentClass
protected Class<?> componentClass
scope
protected ScopeType scope
jndiName
protected String jndiName
installed
protected Boolean installed
autoCreate
protected Boolean autoCreate
startup
protected Boolean startup
startupDepends
protected String[] startupDepends
precedence
protected Integer precedence
ComponentDescriptor
public ComponentDescriptor(String name,
Class<?> componentClass,
ScopeType scope,
Boolean autoCreate,
Boolean startup,
String[] startupDepends,
String jndiName,
Boolean installed,
Integer precedence)
- For components.xml
ComponentDescriptor
public ComponentDescriptor(String name,
Class<?> componentClass,
ScopeType scope)
- For a scanned role
ComponentDescriptor
public ComponentDescriptor(Class componentClass)
- For a scanned default role
ComponentDescriptor
public ComponentDescriptor(Class componentClass,
Boolean installed)
- For built-ins with special rules
getName
public String getName()
getScope
public ScopeType getScope()
getComponentClass
public Class getComponentClass()
getJndiName
public String getJndiName()
isStartup
public boolean isStartup()
isAutoCreate
public boolean isAutoCreate()
getStartupDependencies
public String[] getStartupDependencies()
getDependencies
public String[] getDependencies()
getGenericDependencies
public Class[] getGenericDependencies()
getClassDependencies
public String[] getClassDependencies()
isInstalled
public boolean isInstalled()
getPrecedence
public int getPrecedence()
compareTo
public int compareTo(ComponentDescriptor other)
- Specified by:
compareTo
in interface Comparable<ComponentDescriptor>
isFilter
public boolean isFilter()
isResourceProvider
public boolean isResourceProvider()
isPermissionResolver
public boolean isPermissionResolver()
toString
public String toString()
- Overrides:
toString
in class Object