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 Modifier and Type Field Description private long
m_lastmodified
private java.lang.String
m_name
private Referral[]
m_referrals
private Resource[]
m_resources
private java.util.Set
m_resourceSet
private java.lang.String
m_uri
-
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 void
addReferral(Referral referral)
void
addResource(Resource resource)
long
getLastModified()
Return the last modification date of this repositoryjava.lang.String
getName()
Return the name of this repository.Referral[]
getReferrals()
Resource[]
getResources()
Return the resources for this repository.java.lang.String
getURI()
Return the associated URL for the repository.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.void
setLastModified(long lastModified)
void
setLastModified(java.lang.String s)
void
setName(java.lang.String name)
protected void
setURI(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:Repository
Return the associated URL for the repository.- Specified by:
getURI
in interfaceRepository
-
setURI
protected void setURI(java.lang.String uri)
-
getResources
public Resource[] getResources()
Description copied from interface:Repository
Return the resources for this repository.- Specified by:
getResources
in 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:Repository
Return the name of this repository.- Specified by:
getName
in interfaceRepository
- Returns:
- a non-null name
-
setName
public void setName(java.lang.String name)
-
getLastModified
public long getLastModified()
Description copied from interface:Repository
Return the last modification date of this repository- Specified by:
getLastModified
in 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.
-
-