|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.peaseplate.internal.service.DefaultDesignatorService
public class DefaultDesignatorService
Constructor Summary | |
---|---|
DefaultDesignatorService()
|
Method Summary | |
---|---|
void |
add(java.lang.Class<? extends Designator> designatorClass)
Adds the specified designator to the service. |
void |
add(java.lang.ClassLoader... classLoaders)
Scans the specified class loaders for designator service definitions. |
void |
add(Designator designator)
Adds the specified designator to the service. |
Designator |
get(java.lang.String keyword)
Returns the designator with the specified keyword |
Designator |
getDefaultDesignator()
Returns the designator specified by the default designator keyword |
java.lang.String |
getDefaultDesignatorKeyword()
Returns the keyword of the default designator (the designator that is used if none is specified; the default is "print") |
void |
setDefaultDesignatorKeyword(java.lang.String defaultDesignatorKeyword)
Sets the keyword of the default designator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDesignatorService()
Method Detail |
---|
public void add(java.lang.ClassLoader... classLoaders) throws java.lang.IllegalArgumentException
DesignatorService
Designator
s, one class name per line.
add
in interface DesignatorService
classLoaders
- the class loaders
java.lang.IllegalArgumentException
- if a class could not be instantiatedDesignatorService.add(java.lang.ClassLoader[])
public void add(java.lang.Class<? extends Designator> designatorClass) throws java.lang.IllegalArgumentException
DesignatorService
add
in interface DesignatorService
designatorClass
- the class of the designator
java.lang.IllegalArgumentException
- if the instance could not be createdDesignatorService.add(java.lang.Class)
public void add(Designator designator)
DesignatorService
add
in interface DesignatorService
designator
- the designatorDesignatorService.add(org.peaseplate.lang.Designator)
public Designator get(java.lang.String keyword)
DesignatorService
get
in interface DesignatorService
keyword
- the keyword
DesignatorService.get(java.lang.String)
public java.lang.String getDefaultDesignatorKeyword()
DesignatorService
getDefaultDesignatorKeyword
in interface DesignatorService
DesignatorService.getDefaultDesignatorKeyword()
public void setDefaultDesignatorKeyword(java.lang.String defaultDesignatorKeyword)
DesignatorService
setDefaultDesignatorKeyword
in interface DesignatorService
defaultDesignatorKeyword
- the keywordDesignatorService.setDefaultDesignatorKeyword(java.lang.String)
public Designator getDefaultDesignator() throws java.lang.IllegalStateException
DesignatorService
getDefaultDesignator
in interface DesignatorService
java.lang.IllegalStateException
- if the default designator does not existDesignatorService.getDefaultDesignator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |