Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 199144 Details for
Bug 349711
[metatype] Improve metatype implementation in equinox to allow better use of schema extensions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
proposed api
349711-20110705-1311.txt (text/plain), 5.20 KB, created by
John Ross
on 2011-07-05 14:43:45 EDT
(
hide
)
Description:
proposed api
Filename:
MIME Type:
Creator:
John Ross
Created:
2011-07-05 14:43:45 EDT
Size:
5.20 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.metatype >Index: src/org/eclipse/equinox/metatype/i1/Attribute.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Attribute.java >diff -N src/org/eclipse/equinox/metatype/i1/Attribute.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Attribute.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,11 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+ >+public interface Attribute extends Extendable { >+ AttributeDefinition getAttributeDefinition(); >+ >+ String getContent(); >+ >+ List<String> getValues(); >+} >Index: src/org/eclipse/equinox/metatype/i1/AttributeDefinition.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/AttributeDefinition.java >diff -N src/org/eclipse/equinox/metatype/i1/AttributeDefinition.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/AttributeDefinition.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+public interface AttributeDefinition extends org.osgi.service.metatype.AttributeDefinition, Extendable { >+ // Empty interface to support extendable attribute definitions. >+} >Index: src/org/eclipse/equinox/metatype/i1/Designate.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Designate.java >diff -N src/org/eclipse/equinox/metatype/i1/Designate.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Designate.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,15 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+public interface Designate extends Extendable { >+ String getBundle(); >+ >+ String getFactoryPid(); >+ >+ boolean isMerge(); >+ >+ boolean isOptional(); >+ >+ Object getObject(); >+ >+ String getPid(); >+} >Index: src/org/eclipse/equinox/metatype/i1/Extendable.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Extendable.java >diff -N src/org/eclipse/equinox/metatype/i1/Extendable.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Extendable.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,10 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.Map; >+import java.util.Set; >+ >+public interface Extendable { >+ Map<String, Object> getExtensionAttributes(String id); >+ >+ Set<String> getExtensionIds(); >+} >Index: src/org/eclipse/equinox/metatype/i1/MetaTypeInformation.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/MetaTypeInformation.java >diff -N src/org/eclipse/equinox/metatype/i1/MetaTypeInformation.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/MetaTypeInformation.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,9 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+ >+public interface MetaTypeInformation extends org.osgi.service.metatype.MetaTypeInformation { >+ List<Designate> getDesignates(); >+ >+ ObjectClassDefinition getEquinoxObjectClassDefinition(String id, String locale); >+} >Index: src/org/eclipse/equinox/metatype/i1/MetaTypeService.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/MetaTypeService.java >diff -N src/org/eclipse/equinox/metatype/i1/MetaTypeService.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/MetaTypeService.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,7 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import org.osgi.framework.Bundle; >+ >+public interface MetaTypeService extends org.osgi.service.metatype.MetaTypeService { >+ MetaTypeInformation getEquinoxMetaTypeInformation(Bundle bundle); >+} >Index: src/org/eclipse/equinox/metatype/i1/Object.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Object.java >diff -N src/org/eclipse/equinox/metatype/i1/Object.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Object.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,9 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+ >+public interface Object extends Extendable { >+ List<Attribute> getAttributes(); >+ >+ ObjectClassDefinition getObjectClassDefinition(); >+} >Index: src/org/eclipse/equinox/metatype/i1/ObjectClassDefinition.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/ObjectClassDefinition.java >diff -N src/org/eclipse/equinox/metatype/i1/ObjectClassDefinition.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/ObjectClassDefinition.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,9 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+ >+public interface ObjectClassDefinition extends org.osgi.service.metatype.ObjectClassDefinition, Extendable { >+ List<Designate> getDesignates(); >+ >+ List<AttributeDefinition> getEquinoxAttributeDefinitions(int filter); >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 349711
:
199144
|
199217
|
199393
|
199394