org.jboss.weld.context.beanstore.NamingScheme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-osgi-bundle Show documentation
Show all versions of weld-osgi-bundle Show documentation
Weld runtime packaged as an OSGi bundle
package org.jboss.weld.context.beanstore;
import java.util.Collection;
public interface NamingScheme {
/**
* Determine if this identifier has been prefixed
*
* @param id the id to check
* @return true if it has been prefixed, false otherwise
*/
boolean accept(String id);
/**
* Remove the prefix from the id
*
* @param id the prefixed id
* @return the id without the prefix
*/
String deprefix(String id);
/**
* Add the prefix to the id
*
* @param id the id to prefix
* @return the prefixed id
*/
String prefix(String id);
/**
* Filter a collection of ids, retaining only those correctly prefixed.
*
* @param ids the collection of ides to filter
*/
Collection filterIds(Collection ids);
Collection deprefix(Collection ids);
Collection prefix(Collection ids);
}