Class RepositoryImpl
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.RepositoryImpl
-
- All Implemented Interfaces:
Repository
public class RepositoryImpl extends java.lang.Object implements Repository
-
-
Field Summary
-
Fields inherited from interface org.apache.felix.bundlerepository.Repository
LOCAL, SYSTEM
-
-
Constructor Summary
Constructors Constructor Description RepositoryImpl()RepositoryImpl(Resource[] resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReferral(Referral referral)voidaddResource(Resource resource)longgetLastModified()Return the last modification date of this repositoryjava.lang.StringgetName()Return the name of this repository.Referral[]getReferrals()Resource[]getResources()Return the resources for this repository.java.lang.StringgetURI()Return the associated URL for the repository.protected java.lang.Objectput(java.lang.Object key, java.lang.Object value)Default setter method when setting parsed data from the XML file, which currently ignores everything.voidsetLastModified(long lastModified)voidsetLastModified(java.lang.String s)voidsetName(java.lang.String name)protected voidsetURI(java.lang.String uri)
-
-
-
Constructor Detail
-
RepositoryImpl
public RepositoryImpl()
-
RepositoryImpl
public RepositoryImpl(Resource[] resources)
-
-
Method Detail
-
getURI
public java.lang.String getURI()
Description copied from interface:RepositoryReturn the associated URL for the repository.- Specified by:
getURIin interfaceRepository
-
setURI
protected void setURI(java.lang.String uri)
-
getResources
public Resource[] getResources()
Description copied from interface:RepositoryReturn the resources for this repository.- Specified by:
getResourcesin interfaceRepository
-
addResource
public void addResource(Resource resource)
-
getReferrals
public Referral[] getReferrals()
-
addReferral
public void addReferral(Referral referral) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
Description copied from interface:RepositoryReturn the name of this repository.- Specified by:
getNamein interfaceRepository- Returns:
- a non-null name
-
setName
public void setName(java.lang.String name)
-
getLastModified
public long getLastModified()
Description copied from interface:RepositoryReturn the last modification date of this repository- Specified by:
getLastModifiedin interfaceRepository- Returns:
- the last modification date
-
setLastModified
public void setLastModified(long lastModified)
-
setLastModified
public void setLastModified(java.lang.String s)
-
put
protected java.lang.Object put(java.lang.Object key, java.lang.Object value)Default setter method when setting parsed data from the XML file, which currently ignores everything.
-
-