|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PackageManager
Manages the set of packages that are mappable to a CDO server.
For each such package a PackageManager
contains a PackageInfo
instance.
Method Summary | |
---|---|
void |
addPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String mappingFile)
For internal use only. |
void |
addPackageListener(PackageListener listener)
Adds a PackageListener to the list of listeners to be notified about
packages newly added to this PackageManager . |
void |
announceNewPackages(org.eclipse.net4j.core.Channel channel)
For internal use only. |
AttributeConverter |
getAttributeConverter()
For internal use only. |
ClassInfo |
getClassInfo(org.eclipse.emf.ecore.EClass eClass)
Returns the ClassInfo instance associated with the given EClass . |
ClassInfo |
getClassInfo(org.eclipse.emf.ecore.EObject eObject)
Returns the ClassInfo instance associated with the EClass of
the given EObject . |
ClassInfo |
getClassInfo(int cid)
Returns the ClassInfo instance associated with the given CID . |
java.util.Iterator<ClassInfo> |
getClassInfos()
Returns an iterator over all ClassInfo instances managed by this
PackageManager . |
OIDEncoder |
getOidEncoder()
For internal use only. |
java.util.List<PackageInfo> |
getPackages()
Returns a list of the contained PackageInfo instances. |
void |
initCID(ClassInfo classInfo)
For internal use only. |
void |
removePackageListener(PackageListener listener)
Removes a PackageListener from the list of listeners to be notified about
packages newly added to this PackageManager . |
Methods inherited from interface org.eclipse.net4j.spring.Service |
---|
addStateListener, dump, getState, isActive, isAutoStart, isStarted, removeStateListener, start, stop, testSetState |
Methods inherited from interface org.eclipse.net4j.spring.Loggable |
---|
debug, debug, error, error, fatal, fatal, getBeanName, getChild, getContainer, getFullBeanName, getLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, warn, warn |
Method Detail |
---|
java.util.List<PackageInfo> getPackages()
PackageInfo
instances.
PackageInfo
instances.ClassInfo getClassInfo(org.eclipse.emf.ecore.EClass eClass)
ClassInfo
instance associated with the given EClass
.
eClass
- The EClass
to use as search key.
ClassInfo
instance (or null
).ClassInfo getClassInfo(org.eclipse.emf.ecore.EObject eObject)
ClassInfo
instance associated with the EClass
of
the given EObject
.
This is a convenience method and identical to calling
getClassInfo(eObject.eClass())
.
eObject
- The EObject
whose EClass
to use as search key.
ClassInfo
instance (or null
).getClassInfo(EClass)
ClassInfo getClassInfo(int cid)
ClassInfo
instance associated with the given CID
.
cid
- The CID
to use as search key.
ClassInfo
instance (or null
).java.util.Iterator<ClassInfo> getClassInfos()
ClassInfo
instances managed by this
PackageManager
.
ClassInfo
instances managed by this
PackageManager
.void initCID(ClassInfo classInfo)
void addPackage(org.eclipse.emf.ecore.EPackage ePackage, java.lang.String mappingFile)
void addPackageListener(PackageListener listener)
PackageListener
to the list of listeners to be notified about
packages newly added to this PackageManager
.
listener
- The PackageListener
to be added.void removePackageListener(PackageListener listener)
PackageListener
from the list of listeners to be notified about
packages newly added to this PackageManager
.
listener
- The PackageListener
to be removed.void announceNewPackages(org.eclipse.net4j.core.Channel channel)
OIDEncoder getOidEncoder()
TODO Move this out of PackageManager.
AttributeConverter getAttributeConverter()
TODO Move this out of PackageManager.
|
Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |