Package org.codehaus.mojo.rmic
Class Source
- java.lang.Object
-
- org.codehaus.mojo.rmic.Source
-
- All Implemented Interfaces:
RmicConfig
public class Source extends java.lang.Object implements RmicConfig
Represents a group of class files to be processed by rmic, along with the desired options.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set
excludes
A list of exclusions when searching for classes to compile.private java.lang.Boolean
idl
Create IDL.private java.lang.Boolean
iiop
Create stubs for IIOP.private static java.lang.String
INCLUDE_ALL
protected java.util.Set
includes
A list of inclusions when searching for classes to compile.private java.lang.Boolean
keep
Do not delete intermediate generated source files.private AbstractRmiMojo
mojo
private java.lang.Boolean
noLocalStubs
Do not create stubs optimized for same process.private java.lang.Boolean
noValueMethods
Do not generate methods for valuetypes.private java.lang.Boolean
nowarn
Turn off rmic warnings.private java.lang.Boolean
poa
Enable poa generation.private java.lang.Boolean
verbose
Enable verbose output.private java.lang.String
version
The version of the rmi protocol to which the stubs should be compiled.
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendIfTrue(java.lang.StringBuffer sb, boolean condition, java.lang.String option)
private static java.util.HashSet
createOneElementSet(java.lang.Object element)
(package private) java.util.Set
getExcludes()
(package private) java.util.Set
getIncludes()
java.lang.String
getVersion()
private static boolean
isEmpty(java.util.Collection collection)
boolean
isIdl()
boolean
isIiop()
boolean
isKeep()
Keep intermediate filesboolean
isNoLocalStubs()
Do not create stubs optimized for same process.boolean
isNoValueMethods()
Do not create methods for valuetypes.boolean
isNowarn()
Turn off warningsboolean
isPoa()
private static boolean
isSetOrDefault(java.lang.Boolean field, boolean defaultValue)
boolean
isVerbose()
Output messages about compilation(package private) void
setRmiMojo(AbstractRmiMojo mojo)
java.lang.String
toString()
-
-
-
Field Detail
-
INCLUDE_ALL
private static final java.lang.String INCLUDE_ALL
- See Also:
- Constant Field Values
-
mojo
private AbstractRmiMojo mojo
-
includes
protected java.util.Set includes
A list of inclusions when searching for classes to compile.
-
excludes
protected java.util.Set excludes
A list of exclusions when searching for classes to compile.
-
version
private java.lang.String version
The version of the rmi protocol to which the stubs should be compiled. Valid values include 1.1, 1.2, compat. See the rmic documentation for more information. If nothing is specified the underlying rmi compiler will choose the default value. For example, in sun jdk 1.5 the default is 1.2.
-
iiop
private java.lang.Boolean iiop
Create stubs for IIOP.
-
noLocalStubs
private java.lang.Boolean noLocalStubs
Do not create stubs optimized for same process.
-
idl
private java.lang.Boolean idl
Create IDL.
-
noValueMethods
private java.lang.Boolean noValueMethods
Do not generate methods for valuetypes.
-
keep
private java.lang.Boolean keep
Do not delete intermediate generated source files.
-
nowarn
private java.lang.Boolean nowarn
Turn off rmic warnings.
-
poa
private java.lang.Boolean poa
Enable poa generation.
-
verbose
private java.lang.Boolean verbose
Enable verbose output.
-
-
Method Detail
-
isIiop
public boolean isIiop()
- Specified by:
isIiop
in interfaceRmicConfig
- Returns:
- Whether iiop stubs should be generated
-
isNoLocalStubs
public boolean isNoLocalStubs()
Description copied from interface:RmicConfig
Do not create stubs optimized for same process.- Specified by:
isNoLocalStubs
in interfaceRmicConfig
- Returns:
- true or false
-
isIdl
public boolean isIdl()
- Specified by:
isIdl
in interfaceRmicConfig
- Returns:
- Create IDL
-
isNoValueMethods
public boolean isNoValueMethods()
Description copied from interface:RmicConfig
Do not create methods for valuetypes.- Specified by:
isNoValueMethods
in interfaceRmicConfig
- Returns:
- true or false
-
isKeep
public boolean isKeep()
Description copied from interface:RmicConfig
Keep intermediate files- Specified by:
isKeep
in interfaceRmicConfig
- Returns:
- true or false
-
isNowarn
public boolean isNowarn()
Description copied from interface:RmicConfig
Turn off warnings- Specified by:
isNowarn
in interfaceRmicConfig
- Returns:
- true or false
-
isPoa
public boolean isPoa()
- Specified by:
isPoa
in interfaceRmicConfig
- Returns:
- Whether skeletons should be poa-compatible should be generated
-
isVerbose
public boolean isVerbose()
Description copied from interface:RmicConfig
Output messages about compilation- Specified by:
isVerbose
in interfaceRmicConfig
- Returns:
- true or false
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfaceRmicConfig
- Returns:
- The version of the compiler to use
-
isSetOrDefault
private static boolean isSetOrDefault(java.lang.Boolean field, boolean defaultValue)
-
setRmiMojo
void setRmiMojo(AbstractRmiMojo mojo)
-
getIncludes
java.util.Set getIncludes()
-
getExcludes
java.util.Set getExcludes()
-
createOneElementSet
private static java.util.HashSet createOneElementSet(java.lang.Object element)
-
isEmpty
private static boolean isEmpty(java.util.Collection collection)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendIfTrue
private void appendIfTrue(java.lang.StringBuffer sb, boolean condition, java.lang.String option)
-
-