Package org.apache.bval.jsr
Class ParticipantFactory
- java.lang.Object
-
- org.apache.bval.jsr.ParticipantFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
class ParticipantFactory extends Object implements Closeable
Factory object for helper/participant classes. The typical pattern is that this factory loads an instance of a class by name, taking into account whether Apache BVal is operating in a CDI environment.
-
-
Constructor Summary
Constructors Constructor Description ParticipantFactory(ClassLoader... loaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
(package private) <T> T
create(String classname)
(package private) <T> Set<T>
loadServices(Class<T> type)
-
-
-
Constructor Detail
-
ParticipantFactory
ParticipantFactory(ClassLoader... loaders)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
create
<T> T create(String classname)
-
-