Name

RegistryPackage

Synopsis

public interface RegistryPackage extends RegistryEntry {
// Public Instance Methods
    public abstract void addRegistryObject(RegistryObject registryObject)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void addRegistryObjects(Collection registryObjects)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract Set getRegistryObjects(  )
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void removeRegistryObject(RegistryObject registryObject)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void removeRegistryObjects(Collection registryObjects)
       throws javax.xml.registry.JAXRException;             //L1
}

RegistryPackage is an interface supported by level 1 JAXR providers. It allows a set of RegistryObjects to be logically grouped together. An empty RegistryPackage can be created using the LifeCycleManager createRegistryPackage( ) method, and entries can be added to it by calling addRegistryObject( ) or addRegistryObjects( ). To remove items from the package, use removeRegistryObject( ) or removeRegistryObjects( ). The benefits of a RegistryPackage include the ability to version it or to indicate its stability, using methods provided by the RegistryEntry interface, which it extends. You can also use the getRegistryObjects( ) method to get a list of the objects that it contains. Since a RegistryPackage is a RegistryObject, it is possible to nest one package inside another.

Returned By

javax.xml.registry.LifeCycleManager.createRegistryPackage( ...

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.