Package org.silverpeas.core.admin.domain
Class DomainTypeRegistry
- java.lang.Object
-
- org.silverpeas.core.admin.domain.DomainTypeRegistry
-
@Singleton public class DomainTypeRegistry extends Object
Register of all domain types available into Silverpeas.By default,
DomainType.LDAP
andDomainType.SQL
are already registered.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(DomainType type)
Adds a domain type into registry.boolean
exists(DomainType type)
Indicates if a domain type is registered.static DomainTypeRegistry
get()
protected void
setupDefaults()
-
-
-
Method Detail
-
get
public static DomainTypeRegistry get()
-
setupDefaults
@PostConstruct protected void setupDefaults()
-
add
public void add(DomainType type)
Adds a domain type into registry.- Parameters:
type
- the domain type.
-
exists
public boolean exists(DomainType type)
Indicates if a domain type is registered.- Parameters:
type
- a domain type.- Returns:
- true if registered, false otherwise.
-
-