|
org.netbeans.core.startup/1 1.40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.core.startup.ManifestSection<T>
public abstract class ManifestSection<T>
Class representing one specially-treated section in a module's manifest file. For example, one section may describe a single action provided by the module.
| Nested Class Summary | |
|---|---|
static class |
ManifestSection.ActionSection
Module section for an Action. |
static class |
ManifestSection.ClipboardConvertorSection
Deprecated. use META-INF/services to register convertors. |
static class |
ManifestSection.DebuggerSection
Deprecated. use new debugger API |
static class |
ManifestSection.LoaderSection
Module section for a Data Loader. |
| Constructor Summary | |
|---|---|
protected |
ManifestSection(String name,
Module module,
Object superclazz)
Create a manifest section generally. |
| Method Summary | |
|---|---|
static ManifestSection |
create(String name,
Attributes attr,
Module module)
Parse a manifest section and make an object representation of it. |
protected Object |
createInstance()
Create a fresh instance. |
void |
dispose()
Dispose of a section. |
protected ClassLoader |
getClassLoader()
Get the classloader used to load this section. |
Object |
getInstance()
Get a single cached instance. |
Module |
getModule()
Get the associated module. |
Class<?> |
getSectionClass()
Get the class which the generated instances will have. |
String |
getSectionClassName()
Same as getSectionClass(), but only provides the name of the class. |
Class<?> |
getSuperclass()
Get the superclass which all instances of this section are expected to be assignable to. |
boolean |
isDefaultInstance()
Does this section represent a default instance? Normally true, but false when deserializing beans. |
String |
toString()
String representation for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ManifestSection(String name,
Module module,
Object superclazz)
throws InvalidException
name - name of section, should be a class file, e.g. foo/Bar.classmodule - associated modulesuperclazz - super-class of instances of this section
InvalidException - if the name is not valid for an OpenIDE section
(exception must include module for reference)| Method Detail |
|---|
public final Module getModule()
protected final ClassLoader getClassLoader()
public final boolean isDefaultInstance()
public final Class<?> getSectionClass()
throws Exception
Exception - for various reasons
public String getSectionClassName()
throws Exception
getSectionClass(), but only provides the name of the class.
Could be more efficient because it will not try to load the class unless
a serialized bean is in use.
Exception
protected final Object createInstance()
throws Exception
Exception - if there is an error
public final Object getInstance()
throws Exception
Exception - if there is an errorpublic final Class<?> getSuperclass()
public void dispose()
public String toString()
toString in class Object
public static ManifestSection create(String name,
Attributes attr,
Module module)
throws InvalidException
name - name of the section (i.e. file to load)attr - attributes of the manifest sectionmodule - the associated module
InvalidException - if the attributes are not valid
|
org.netbeans.core.startup/1 1.40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||