|
org.openide.nodes 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstanceCookie
Cookie that should be provided by all nodes that are able to create a "instance". Generally this is used to register objects declaratively in XML layers.
Nested Class Summary | |
---|---|
static interface |
InstanceCookie.Of
Enhanced cookie that can answer queries about the type of the instance it creates. |
Method Summary | |
---|---|
Class<?> |
instanceClass()
The type that the instance is expected to be assignable to. |
Object |
instanceCreate()
Create an instance. |
String |
instanceName()
The name of instanceClass() . |
Method Detail |
---|
String instanceName()
instanceClass()
.
Should be the same as instanceClass().getName()
but may be able to avoid actually loading the class.
Class<?> instanceClass() throws IOException, ClassNotFoundException
IOException
- if metadata about the instance could not be read, etc.
ClassNotFoundException
- if the instance type could not be loadedObject instanceCreate() throws IOException, ClassNotFoundException
instanceClass()
IOException
- for the same reasons as instanceClass()
, or an object could not be deserialized, etc.
ClassNotFoundException
- for the same reasons as instanceClass()
|
org.openide.nodes 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |