public class SimpleLoadingPolicy extends java.lang.Object implements LoadingPolicy
Zephyr Business Solution
Constructor and Description |
---|
SimpleLoadingPolicy()
Create a SimpleLoadingPolicy object.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildFirstRoot(java.lang.String name)
Adds a package prefix for child-first.
|
void |
addChildOnlyRoot(java.lang.String name)
Adds a package prefix for child-only.
|
void |
addParentFirstRoot(java.lang.String name)
Adds a package prefix for parent-first.
|
void |
addParentOnlyRoot(java.lang.String name)
Adds a package prefix for parent-only.
|
void |
addSystemRoot(java.lang.String name)
Adds a package prefix as a system package so that
it is guaranteed to be loaded parent-first even if
child-first is set for global setting.
|
boolean |
isChildOnly(java.lang.String name)
This is the third priority.
|
boolean |
isParentFirst(java.lang.String name)
The lowest priority parameter.
|
boolean |
isParentOnly(java.lang.String name)
This is the highest priority.
|
boolean |
isSystem(java.lang.String name)
This is the second priority.
|
void |
notChildOnlyRoot(java.lang.String name)
Adds a package prefix to exclude for child-only.
|
void |
notParentOnlyRoot(java.lang.String name)
Adds a package prefix to exclude for parent-only.
|
void |
notSystemRoot(java.lang.String name)
Adds a package prefix to exclude for system package.
|
void |
setChildOnly(boolean v)
Sets the child-only option.
|
void |
setParentFirst(boolean v)
Sets the parent-first option.
|
void |
setParentOnly(boolean v)
Sets the parent-only option.
|
public SimpleLoadingPolicy()
public boolean isParentFirst(java.lang.String name)
LoadingPolicy
isParentFirst
in interface LoadingPolicy
name
- the class or resource name.public boolean isParentOnly(java.lang.String name)
LoadingPolicy
isParentOnly
in interface LoadingPolicy
name
- the class or resource name.public boolean isSystem(java.lang.String name)
LoadingPolicy
isSystem
in interface LoadingPolicy
name
- the class or resource name.public boolean isChildOnly(java.lang.String name)
LoadingPolicy
isChildOnly
in interface LoadingPolicy
name
- the class or resource name.public void setParentFirst(boolean v)
v
- true if parent-first, false otherwise.public void setParentOnly(boolean v)
v
- true if parent-only, false otherwise.public void setChildOnly(boolean v)
v
- true if child-only, false otherwise.public void addParentFirstRoot(java.lang.String name)
name
- the package root.public void addChildFirstRoot(java.lang.String name)
name
- the package root.public void addParentOnlyRoot(java.lang.String name)
name
- the package root.public void addChildOnlyRoot(java.lang.String name)
name
- the package root.public void notChildOnlyRoot(java.lang.String name)
name
- the package root.public void notParentOnlyRoot(java.lang.String name)
name
- the package root.public void addSystemRoot(java.lang.String name)
name
- the package root.public void notSystemRoot(java.lang.String name)
name
- the package root.